This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
callee synchronize
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Discuss List <java at gcc dot gnu dot org>
- Date: 12 Dec 2001 13:23:15 -0700
- Subject: callee synchronize
- Reply-to: tromey at redhat dot com
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