Hi,
I have a JNI library. I have a critical section that makes no JNI
callbacks into the java bytecodes, just several C++ statements that
change memory.
On which JREs and platforms (if any) can I protect such a critical
section with a pthread mutex (or Win32 mutex) with the same acquire/
release semantics that a pthread mutex normally offers relative to the
java threads. I.e. could a signal allow another java thread to
somehow enter the critical section held by the thread already in it?
The problem for me is that MonitorEnter and MonitorExit are very slow
in comparison to a native mutex.
Andy