synchronization in gcj

Archie Cobbs archie@whistle.com
Thu Jan 14 23:53:00 GMT 1999


Tom Tromey writes:
> Does the JVM really require monitorenter and monitorexit to be paired
> in a method?  I didn't see this restriction in the JVM spec, but I
> didn't look very hard either.  If you have a pointer, I'd appreciate
> it.
> 
> This is an important consideration because the .class reader should
> work with any .class file, not just one that comes from Java source
> code.

I think the JVM itself doesn't require it, but the class verifier does.
(not 100% positive though).

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com



More information about the Java mailing list