From 2a54ca731ca2a870da77d399d41b5f15bd35e53a Mon Sep 17 00:00:00 2001 From: shade Date: Fri, 27 Mar 2020 19:05:07 +0100 Subject: [PATCH] 8241750: x86_32 build failure after JDK-8227269 Reviewed-by: rkennke, cjplummer --- src/share/back/classTrack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/back/classTrack.c b/src/share/back/classTrack.c index 2c1ce2cc6..625131152 100644 --- a/src/share/back/classTrack.c +++ b/src/share/back/classTrack.c @@ -69,7 +69,7 @@ cbTrackingObjectFree(jvmtiEnv* jvmti_env, jlong tag) debugMonitorExit(classTrackLock); return; } - *(char**)bagAdd(deletedSignatures) = (char*)tag; + *(char**)bagAdd(deletedSignatures) = (char*)jlong_to_ptr(tag); debugMonitorExit(classTrackLock); } @@ -117,7 +117,7 @@ classTrack_addPreparedClass(JNIEnv *env_unused, jclass klass) if (error != JVMTI_ERROR_NONE) { EXIT_ERROR(error,"signature"); } - error = JVMTI_FUNC_PTR(trackingEnv, SetTag)(env, klass, (jlong)signature); + error = JVMTI_FUNC_PTR(trackingEnv, SetTag)(env, klass, ptr_to_jlong(signature)); if (error != JVMTI_ERROR_NONE) { jvmtiDeallocate(signature); EXIT_ERROR(error,"SetTag"); -- GitLab