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]

Re: RFC: Handling special cases during VM startup


>>>>> "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


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