This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

callee synchronize


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]