JDK-8299570 : [JVMCI] Insufficient error handling when CodeBuffer is exhausted
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,20,21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2023-01-04
  • Updated: 2024-08-20
  • Resolved: 2023-03-08
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 17 JDK 20 JDK 21
11.0.20-oracleFixed 17.0.8-oracleFixed 20.0.2Fixed 21 b13Fixed
Related Reports
Relates :  
Description
This is a follow-up from JDK-8298720.

When CodeBuffer::expand fails, MacroAssembler::emit_trampoline_stub fails on Aarch64. The following call chain does not handle this properly:

CodeInstaller::site_Call -> CodeInstaller::pd_relocate_JavaMethod -> NativeCall::trampoline_jump -> MacroAssembler::emit_trampoline_stub

Similar, CompiledStaticCall::emit_to_interp_stub can fail as well and needs to be handled in CodeInstaller::site_Call.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/11945 Date: 2023-01-11 14:29:43 +0000
20-08-2024

Fix request [17u] I backport this for parity with 17.0.8-oracle. Medium risk, basically touches JVMCI and aarch64. I had to resolve three files due to context and NULL/nullptr. SAP nighlty testing passed.
04-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1308 Date: 2023-04-28 11:03:36 +0000
03-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20u/pull/44 Date: 2023-03-29 11:51:49 +0000
29-03-2023

Fix Request (JDK 20u) Resolves an issue with insufficient error handling in JVMCI. The fix is low risk, was already backported to Oracle JDK 17u / 11u and tested in the JDK 21 and 17u / 11u CIs. The backport applies cleanly.
29-03-2023

Changeset: ad326fc6 Author: Doug Simon <dnsimon@openjdk.org> Date: 2023-03-08 22:33:42 +0000 URL: https://git.openjdk.org/jdk/commit/ad326fc62be9fa29438fb4b59a51c38dd94afd68
08-03-2023

ILW = Same as JDK-8298720 = P3
04-01-2023