WIP: ClassFileLoadHook

This commit is contained in:
xiaozhou233 committed 2026-04-01 18:14:44 +08:00
1 parent b0d8b5901f
commit faeaf052b9
3 files changed
+45

No files matched your search

+14
View File
@@ -8,3 +8,17 @@
// Generated by JuiceAgent-API
#include <cn_xiaozhou233_juiceagent_api_JuiceAgent.h>
// Event callbacks
// See https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#ClassFileLoadHook
void JNICALL ClassFileLoadHook(
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* classbytes,
jint* new_class_data_len,
unsigned char** new_classbytes);