callee synchronize

Tom Tromey tromey@redhat.com
Wed Dec 12 12:18:00 GMT 2001


In libgcj we decided to have the callee synchronize.
First, our JNI implementation currently has a bug that makes this not
happen. If you have a `sychronized native' JNI method, the
synchronization won't happen. This is clearly a bug, and I have a
patch which I'll check in soon.
Second, for CNI of course there's no way to tell whether the native
method will synchronize, and there's no way to automatically enable
it. In this situation declaring a method `synchronized native' will
just be confusing. What if we make `synchronized native' generate a
warning (except in `-fjni' mode of course)?
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /