JDK-8259568 : PPC64 builds broken after JDK-8221408 8u backport
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: openjdk8u292
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-11
  • Updated: 2021-02-02
  • Resolved: 2021-01-19
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.
Other
openjdk8u292 b01Fixed
Related Reports
Relates :  
Description
Manifests like this:

/home/shade/jdk8u-jdk8u-dev/hotspot/src/cpu/ppc/vm/interp_masm_ppc_64.cpp: In member function 'void InterpreterMacroAssembler::lock_object(Register, Register)':
/home/shade/jdk8u-jdk8u-dev/hotspot/src/cpu/ppc/vm/interp_masm_ppc_64.cpp:913:68: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                                     markOopDesc::lock_mask_in_place));
                                                                    ^
/home/shade/jdk8u-jdk8u-dev/hotspot/src/cpu/ppc/vm/macroAssembler_ppc.cpp: In member function 'void MacroAssembler::compiler_fast_lock_object(ConditionRegister, Register, Register, Register, Register, Register)':
/home/shade/jdk8u-jdk8u-dev/hotspot/src/cpu/ppc/vm/macroAssembler_ppc.cpp:2050:72: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                                         markOopDesc::lock_mask_in_place));

This is 8u-specific trouble similar to JDK-8221725, so it must be caused by JDK-8221408.

Note that JDK 9+ is not affected, because JDK-8144019 changed the affected lines to effectively use the "long" argument overload:
https://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/4a24de859a87#l29.68
https://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/4a24de859a87#l31.599

It makes sense to backport those two changes to 8u to unbreak PPC64 builds.
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/aa3d863d3ab5 User: andrew Date: 2021-02-02 05:24:08 +0000
02-02-2021

URL: https://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/aa3d863d3ab5 User: shade Date: 2021-01-19 09:45:10 +0000
19-01-2021

Fix Request (8u) 8u RFR (acked by mdoerr): https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-January/013301.html
18-01-2021