This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Handling special cases during VM startup
- From: Tom Tromey <tromey at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 27 Jul 2006 11:29:58 -0400
- Subject: Re: RFC: Handling special cases during VM startup
- References: <20060727133207.GC3793@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
Gary> I propose changing _Jv_CreateJavaVM to set runtimeInitialized after
Gary> initialization completes, and changing VMThrowable to use it. The
Gary> attached patch does this.
Gary> Comments?
Could you look to see when runtimeInitialized was added -- and if
there was some test case, give it a try? I'm a little worried that
there might be a race case in this code and that moving the set of
runtimeInitialized later will make it more likely to hit the race.
Maybe we need to have some kind of synchronization here, I'm not sure.
Otherwise this seems reasonable to me.
Tom