Patch: FYI: Fix PR 7587 - interpreter thread safety
Bryce McKinlay
mckinlay@redhat.com
Thu Jul 15 05:51:00 GMT 2004
Currently the interpreter can crash if a method is "compiled"
simultaniously by two different threads. This was occuring quite
frequently running GCTest on my machine. This patch fixes it by
introducing a global lock around _Jv_InterpMethod::compile(). Ideally
we'd have a more fine-grained lock, however I don't think its safe to
use the class lock because user code might hold it and there would be a
potential for deadlock.
I'm checking this in.
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-PR7587.patch
Type: text/x-patch
Size: 2725 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040715/4d1c73d4/attachment.bin>
More information about the Java-patches
mailing list