Bryce wrote:
> Certainly, bytecode isn't allowed to do this kind of thing, but I'm not
> sure if the structured locking rules in the VM spec are meant to apply
> to native code. For example, wait() would be impossible to implement if
> this were the case, wouldn't it?

I think the rules are meat to apply to bytecode and JNI, otherwise they
could be trivially circumvented.

wait() is part of the JVM and I would not expect it to use JNI internally.

Unfortunately the JNI spec says nothing about this. I'm not aware of
anything in the JVMS 3e that addresses this either.

Cheers,
David Holmes



_______________________________________________
Classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to