From e72eb664af69386dfd9f72293d7b879361d733c2 Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Tue, 3 Dec 2024 05:43:46 -0500 Subject: [PATCH] GH-86 Update JNI build hooks. --- jni/Post4.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/jni/Post4.c b/jni/Post4.c index 6b5bdaf..95a59da 100644 --- a/jni/Post4.c +++ b/jni/Post4.c @@ -820,26 +820,26 @@ jSetField(P4_Ctx *ctx) } static P4_Hook jHooks[] = { - P4_HOOK("jSetLocalCapacity", jSetLocalCapacity), - P4_HOOK("jDeleteLocalRef", jDeleteLocalRef), - P4_HOOK("jFindClass", jFindClass), + P4_HOOK(0x10, "jSetLocalCapacity", jSetLocalCapacity), + P4_HOOK(0x10, "jDeleteLocalRef", jDeleteLocalRef), + P4_HOOK(0x21, "jFindClass", jFindClass), #ifdef HMM - P4_HOOK("jObjectClass", jObjectClass), - P4_HOOK("jMethodID", jMethodID), - P4_HOOK("jFieldID", jFieldID), + P4_HOOK(0x11, "jObjectClass", jObjectClass), + P4_HOOK(0x52, "jMethodID", jMethodID), + P4_HOOK(0x52, "jFieldID", jFieldID), #endif - P4_HOOK("jPushLocalFrame", jPushLocalFrame), - P4_HOOK("jPopLocalFrame", jPopLocalFrame), - P4_HOOK("jStringByteLength", jStringByteLength), - P4_HOOK("jUnboxString", jUnboxString), - P4_HOOK("jArrayLength", jArrayLength), - P4_HOOK("jUnboxArray", jUnboxArray), - P4_HOOK("jBoxString", jBoxString), - P4_HOOK("jBoxArray", jBoxArray), - P4_HOOK("jSetField", jSetField), - P4_HOOK("jField", jField), - P4_HOOK("jCall", jCall), - { 0, NULL, NULL } + P4_HOOK(0x10, "jPushLocalFrame", jPushLocalFrame), + P4_HOOK(0x00, "jPopLocalFrame", jPopLocalFrame), + P4_HOOK(0x11, "jStringByteLength", jStringByteLength), + P4_HOOK(0x12, "jUnboxString", jUnboxString), + P4_HOOK(0x11, "jArrayLength", jArrayLength), + P4_HOOK(0x11, "jUnboxArray", jUnboxArray), + P4_HOOK(0x21, "jBoxString", jBoxString), + P4_HOOK(0x11, "jBoxArray", jBoxArray), + P4_HOOK(0x60, "jSetField", jSetField), + P4_HOOK(0x51, "jField", jField), + P4_HOOK(0x51, "jCall", jCall), + { 0, 0, NULL, NULL } }; #endif