This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[RFA/JVMTI] Better env list locking
- From: Keith Seitz <keiths at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Thu, 01 Feb 2007 16:37:40 -0800
- Subject: [RFA/JVMTI] Better env list locking
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.