JDK-8241750 : x86_32 build failure after JDK-8227269
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-27
  • Updated: 2024-04-16
  • Resolved: 2020-03-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 15 Other
11.0.9Fixed 13.0.4Fixed 14.0.2Fixed 15 b17Fixed openjdk8u262Fixed
Related Reports
Relates :  
Description
x86_32:

* For target support_native_jdk.jdwp.agent_libjdwp_classTrack.o:
/home/shade/trunks/jdk-jdk/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c: In function 'cbTrackingObjectFree':
/home/shade/trunks/jdk-jdk/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c:72:42: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     *(char**)bagAdd(deletedSignatures) = (char*)tag;
                                          ^
/home/shade/trunks/jdk-jdk/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c: In function 'classTrack_addPreparedClass':
/home/shade/trunks/jdk-jdk/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c:120:61: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     error = JVMTI_FUNC_PTR(trackingEnv, SetTag)(env, klass, (jlong)signature);
                                                             ^

Comments
Fix Request for 8u: Patch applies cleanly, with automated path shuffling. It is the companion fix for x86-32 if JDK-8227269 is approved.
23-05-2020

Fix Request for 11u, 13u & 14u: Patch applies unchanged and is the companion fix for x86-32 if JDK-8227269 is approved.
23-05-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/af6e51a97af5 User: shade Date: 2020-03-27 18:05:23 +0000
27-03-2020

RFR: https://mail.openjdk.java.net/pipermail/serviceability-dev/2020-March/030850.html
27-03-2020

Can be fixed with: diff -r fef47d126675 src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c --- a/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c Fri Mar 27 15:33:24 2020 +0100 +++ b/src/jdk.jdwp.agent/share/native/libjdwp/classTrack.c Fri Mar 27 17:37:54 2020 +0100 @@ -70,5 +70,5 @@ return; } - *(char**)bagAdd(deletedSignatures) = (char*)tag; + *(char**)bagAdd(deletedSignatures) = (char*)jlong_to_ptr(tag); debugMonitorExit(classTrackLock); @@ -118,5 +118,5 @@ 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);
27-03-2020