JDK-8339132 : Make DirectCodeBuilder write through without allocating instruction objects
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-28
  • Updated: 2024-09-05
  • Resolved: 2024-08-29
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 24
24 b14Fixed
Description
DirectCodeBuilder instruction writing are currently writing via intermediate object creation, which brings extra allocations and calls. We should eliminate those allocations and make DCB write through, which is the overwhelming majority of usages of DirectCodeBuilder.
Comments
Changeset: 777ed2b5 Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-08-29 15:45:52 +0000 URL: https://git.openjdk.org/jdk/commit/777ed2b5d2ef8371407cc9bf0370a7cef937cfb7
29-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20738 Date: 2024-08-28 01:49:21 +0000
28-08-2024