Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
13173:5df9c590f401 | 13174:b00553202ec2 |
---|---|
5174 *(JNIEnv**)penv = thread->jni_environment(); | 5174 *(JNIEnv**)penv = thread->jni_environment(); |
5175 | 5175 |
5176 #ifdef GRAAL | 5176 #ifdef GRAAL |
5177 // GraalCompiler needs to have been created in compileBroker.cpp | 5177 // GraalCompiler needs to have been created in compileBroker.cpp |
5178 GraalCompiler* graal_compiler = GraalCompiler::instance(); | 5178 GraalCompiler* graal_compiler = GraalCompiler::instance(); |
5179 graal_compiler->initialize(); | 5179 if (graal_compiler != NULL) { |
5180 graal_compiler->initialize(); | |
5181 } else { | |
5182 assert(!UseCompiler, "why isn't there are compiler?"); | |
5183 } | |
5180 #endif | 5184 #endif |
5181 | 5185 |
5182 // Tracks the time application was running before GC | 5186 // Tracks the time application was running before GC |
5183 RuntimeService::record_application_start(); | 5187 RuntimeService::record_application_start(); |
5184 | 5188 |