This is the mail archive of the java-patches@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]

[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.


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