JDK-8326101 : [PPC64] Need to bailout cleanly if creation of stubs fails when code cache is out of space
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,21,22,23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • CPU: ppc
  • Submitted: 2024-02-17
  • Updated: 2024-03-15
  • Resolved: 2024-02-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.
JDK 17 JDK 21 JDK 22 JDK 23
17.0.12Fixed 21.0.4Fixed 22.0.1Fixed 23 b11Fixed
Related Reports
Relates :  
Relates :  
Description
JDK-8130309 has fixed most of the issues, but not all PPC64 cases. emit_exception_handler and emit_deopt_handler should also record the failure.

"assert(allocates2(pc)) failed: relocation addr must be in this section" has been observed in JDK 11u.

V  [libjvm.so+0xa97a70]  report_vm_error(char const*, int, char const*, char const*, ...)+0xf0
V  [libjvm.so+0x8cf418]  CodeSection::relocate(unsigned char*, RelocationHolder const&, int) [clone .part.84]+0x348
V  [libjvm.so+0x8cf714]  CodeSection::relocate(unsigned char*, relocInfo::relocType, int, int)+0x94
V  [libjvm.so+0x13a8890]  MacroAssembler::bxx64_patchable(unsigned char*, relocInfo::relocType, bool)+0x3f0
V  [libjvm.so+0x23decc]  HandlerImpl::emit_deopt_handler(CodeBuffer&)+0x9c
V  [libjvm.so+0x1613124]  Compile::fill_buffer(CodeBuffer*, unsigned int*)+0x2004
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2604 Date: 2024-03-15 20:23:22 +0000
15-03-2024

[jdk17u-fix-request] Approval Request from Martin JDK 17 is affected by this bug. The fix is small, only touches two PPC64 files and the version from 22u applies cleanly. The fix has been tested in head for some time and retested in 22u and 21u-dev and 17u-dev. No regression found.
13-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2289 Date: 2024-03-12 12:36:53 +0000
12-03-2024

[jdk21u-fix-request] Approval Request from Martin JDK 21 is affected by this bug. The fix is small, only touches two PPC64 files and the version from 22u applies cleanly. The fix has been tested in head for some time and retested in 22u and 21u-dev. No regression found.
02-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/312 Date: 2024-03-01 15:47:41 +0000
01-03-2024

[jdk22u-fix-request] Approval Request from Martin JDK 22 is affected by this bug. The fix is small, only touches two PPC64 files and applies almost cleanly. The trivial resolution has been reviewed. The fix has been tested in head for some time and retested in 22u. No regression found.
01-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22u/pull/76 Date: 2024-02-28 10:30:59 +0000
28-02-2024

ILW = Same as JDK-8310309 = P3
20-02-2024

Changeset: a19314b0 Author: Martin Doerr <mdoerr@openjdk.org> Date: 2024-02-19 15:20:23 +0000 URL: https://git.openjdk.org/jdk/commit/a19314b08789afb28e14651868f91d54ed6a9c30
19-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17902 Date: 2024-02-17 13:48:31 +0000
17-02-2024