--- old/src/hotspot/share/prims/jvmtiExport.cpp 2018-10-21 17:55:05.807250557 -0700 +++ new/src/hotspot/share/prims/jvmtiExport.cpp 2018-10-21 17:55:05.527239796 -0700 @@ -994,6 +994,16 @@ } }; +bool JvmtiExport::early_class_hook_env() { + JvmtiEnvIterator it; + for (JvmtiEnv* env = it.first(); env != NULL; env = it.next(env)) { + if (env->early_class_hook_env()) { + return true; + } + } + return false; +} + bool JvmtiExport::_should_post_class_file_load_hook = false; // this entry is for class file load hook on class load, redefine and retransform