JDK-8339742 : Refactor ClassFileImpl to allow loading Option classes lazily
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-09
  • Updated: 2024-09-16
  • Resolved: 2024-09-09
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 b15Fixed
Description
The way the ClassFileImpl is written today we'll eagerly load all possible Option classes up front. By refactoring - have ClassFileImpl store Option instances and default to null values - we can make this lazily loaded (only load, say, DeadCodeOption if a user provides it)
Comments
Changeset: d53e405a Branch: master Author: Claes Redestad <redestad@openjdk.org> Date: 2024-09-09 14:18:20 +0000 URL: https://git.openjdk.org/jdk/commit/d53e405a26e53086d46ce78a9792f0ca72cca529
09-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20911 Date: 2024-09-09 11:16:32 +0000
09-09-2024