in modules/vfs-class-loader/src/main/java/org/apache/accumulo/classloader/vfs/AccumuloVFSClassLoader.java [655:673]
protected boolean isVMInitialized() {
if (VM_INITIALIZED) {
return VM_INITIALIZED;
} else {
// We can't call VM.isBooted() directly, but we know from System.initPhase3() that
// when this classloader is set via 'java.system.class.loader' that it will be initialized,
// then set as the Thread context classloader, then the VM is fully initialized.
try {
printDebug(
"System ClassLoader: " + ClassLoader.getSystemClassLoader().getClass().getName());
VM_INITIALIZED = isSystemClassLoader();
} catch (IllegalStateException e) {
// VM is still initializing
VM_INITIALIZED = false;
}
printDebug("VM Initialized: " + VM_INITIALIZED);
return VM_INITIALIZED;
}
}