diff src/share/vm/prims/jni.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 b1838411e896
line wrap: on
line diff
--- 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