This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA/JVMTI] Fix a couple of thinkos
- From: Tom Tromey <tromey at redhat dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 11 Oct 2006 17:19:58 -0600
- Subject: Re: [RFA/JVMTI] Fix a couple of thinkos
- References: <452D6A7D.8030802@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Keith> First, the JVMTI namespace I
Keith> introduced to jvmti-int.h for event processing must have all the
Keith> members declared extern (and subsequently defined in one place).
This part is ok.
Keith> Second, we cannot simply lock the environment list in
Keith> _Jv_JVMTI_PostEvent. It would prevent another event from posting an
Keith> event because the lock would still be held by the suspended thread.
Hmm, can't we now dispose a jvmti environment while an event is being
posted? Perhaps leading to something bad?
Keith> + /* Don't even think about locking the env list here. It will prevent
Keith> + any events from being posted if some thread suspended as a result
Keith> + of a previous event. */
We may have to defer manipulations of the env list until it is safe.
Tom