< prev index next >
src/share/vm/jvmci/jvmciCompiler.cpp
Print this page
@@ -123,10 +123,15 @@
} \
(void)(0
void JVMCICompiler::compile_method(const methodHandle& method, int entry_bci, JVMCIEnv* env) {
JVMCI_EXCEPTION_CONTEXT
+ if (SystemDictionary::java_system_loader() == NULL) {
+ // 8160121: The system class loader is cached in the VM after VM init phase 3 has completed.
+ // We cannot compile before then as the ServiceLoader cannot be used until after phase 3.
+ return;
+ }
bool is_osr = entry_bci != InvocationEntryBci;
if (_bootstrapping && is_osr) {
// no OSR compilations during bootstrap - the compiler is just too slow at this point,
// and we know that there are no endless loops
< prev index next >