# HG changeset patch # User Tom Rodriguez # Date 1385422278 28800 # Node ID b00553202ec2cf34937d3785d9a07e22a0ac3b99 # Parent 5df9c590f401f0be41802bc287a47c4479bd18c6 add NULL check so that -Xint option works again diff -r 5df9c590f401 -r b00553202ec2 src/share/vm/prims/jni.cpp --- a/src/share/vm/prims/jni.cpp Mon Nov 25 15:26:08 2013 -0800 +++ b/src/share/vm/prims/jni.cpp Mon Nov 25 15:31:18 2013 -0800 @@ -5176,7 +5176,11 @@ #ifdef GRAAL // GraalCompiler needs to have been created in compileBroker.cpp GraalCompiler* graal_compiler = GraalCompiler::instance(); - graal_compiler->initialize(); + if (graal_compiler != NULL) { + graal_compiler->initialize(); + } else { + assert(!UseCompiler, "why isn't there are compiler?"); + } #endif // Tracks the time application was running before GC diff -r 5df9c590f401 -r b00553202ec2 src/share/vm/runtime/java.cpp --- a/src/share/vm/runtime/java.cpp Mon Nov 25 15:26:08 2013 -0800 +++ b/src/share/vm/runtime/java.cpp Mon Nov 25 15:31:18 2013 -0800 @@ -462,7 +462,9 @@ static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; #ifdef GRAAL - GraalCompiler::instance()->exit(); + if (GraalCompiler::instance() != NULL) { + GraalCompiler::instance()->exit(); + } #endif // Note: don't use a Mutex to guard the entire before_exit(), as