comparison src/share/vm/runtime/java.cpp @ 2937:2823897b2da2

Fix for NodeWorkList
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Fri, 10 Jun 2011 16:53:34 +0200
parents 1e13559b112d
children 04b9a2566eec
comparison
equal deleted inserted replaced
2936:3fa0e12d524a 2937:2823897b2da2
417 #define BEFORE_EXIT_NOT_RUN 0 417 #define BEFORE_EXIT_NOT_RUN 0
418 #define BEFORE_EXIT_RUNNING 1 418 #define BEFORE_EXIT_RUNNING 1
419 #define BEFORE_EXIT_DONE 2 419 #define BEFORE_EXIT_DONE 2
420 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; 420 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN;
421 421
422 // if (UseGraal) { 422 if (UseGraal) {
423 // GraalCompiler::instance()->exit(); 423 GraalCompiler::instance()->exit();
424 // } 424 }
425 425
426 // Note: don't use a Mutex to guard the entire before_exit(), as 426 // Note: don't use a Mutex to guard the entire before_exit(), as
427 // JVMTI post_thread_end_event and post_vm_death_event will run native code. 427 // JVMTI post_thread_end_event and post_vm_death_event will run native code.
428 // A CAS or OSMutex would work just fine but then we need to manipulate 428 // A CAS or OSMutex would work just fine but then we need to manipulate
429 // thread state for Safepoint. Here we use Monitor wait() and notify_all() 429 // thread state for Safepoint. Here we use Monitor wait() and notify_all()