[RFA/JVMTI] Better env list locking
Keith Seitz
keiths@redhat.com
Fri Feb 2 00:38:00 GMT 2007
Hi,
A long time ago, I noted errors in the environment list locking in
jvmti.cc. Well, at long last, the time has come to fix it. With the
recent merge, we now have access to ReentrantReadWriteLock, which is
what is now used to lock the environment list.
Once again, this patch looks a lot bigger than it is. Much of it just
moves some chunks of code around.
Comments/questions/concerns?
Keith
ChangeLog
2007-02-01 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_envListLock): Change type to
ReentrantReadWriteLock.
(_Jv_JVMTI_DisposeEnvironment): Switch to read/write
lock.
(check_enabled_event): Likewise.
(_Jv_GetJVMTIEnv): Likewise.
(_Jv_JVMTI_Init): Likewise.
(_Jv_JVMTI_PostEvent): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jvmti-locks.patch
Type: text/x-patch
Size: 4626 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070202/95cc75a4/attachment.bin>
More information about the Java-patches
mailing list