comparison src/share/vm/runtime/java.cpp @ 13174:b00553202ec2

add NULL check so that -Xint option works again
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 25 Nov 2013 15:31:18 -0800
parents 096c224171c4
children d8041d695d19
comparison
equal deleted inserted replaced
13173:5df9c590f401 13174:b00553202ec2
460 #define BEFORE_EXIT_RUNNING 1 460 #define BEFORE_EXIT_RUNNING 1
461 #define BEFORE_EXIT_DONE 2 461 #define BEFORE_EXIT_DONE 2
462 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; 462 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN;
463 463
464 #ifdef GRAAL 464 #ifdef GRAAL
465 GraalCompiler::instance()->exit(); 465 if (GraalCompiler::instance() != NULL) {
466 GraalCompiler::instance()->exit();
467 }
466 #endif 468 #endif
467 469
468 // Note: don't use a Mutex to guard the entire before_exit(), as 470 // Note: don't use a Mutex to guard the entire before_exit(), as
469 // JVMTI post_thread_end_event and post_vm_death_event will run native code. 471 // JVMTI post_thread_end_event and post_vm_death_event will run native code.
470 // A CAS or OSMutex would work just fine but then we need to manipulate 472 // A CAS or OSMutex would work just fine but then we need to manipulate