Using jvmti 11.0.3.7 on Microsoft Windows. The ‘ClasFileLoadHook’ does not hook “java/lang/Thread”. is “Thread” special in some way? Does the callback happen too late in process startup? Is this a bug? Is there a workaround?
typedef void (JNICALL jvmtiEventClassFileLoadHook)
(jvmtiEnv jvmti_env,
JNIEnv jni_env,
jclass class_being_redefined,
jobject loader,
const char name,
jobject protection_domain,
jint class_data_len,
const unsigned char* class_data,
jint* new_class_data_len,
unsigned char** new_class_data);
I watched the ‘name’s that are hooked. “java/lang/thread” is not seen. It seems all other classes in the “java.lang” namespace seem to be hooked, but I have no way of proving what other classes (if any) are missing.
user25903459 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.