JDK-8342561 : Metaspace for generated reflection classes is no longer needed
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-10-17
  • Updated: 2024-10-28
  • Resolved: 2024-10-28
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 masterFixed
Related Reports
Blocks :  
Description
The old reflection implementation has been removed and also the old implementation to generate bytecode for `newSerializableConstructorAccessor` has been reimplemented using method handles in JDK 22.    JDK-8327624 proposes to remove  `jdk.internal.reflect.DelegatingClassLoader` as nothing will be defined by that loader.

Hence the special metaspace for reflection (`Metaspace::ReflectionMetaspaceType`) is no longer needed and can be moved.   Existing GTests will need to be updated together.
Comments
Changeset: 120a9357 Branch: master Author: Coleen Phillimore <coleenp@openjdk.org> Date: 2024-10-28 13:48:23 +0000 URL: https://git.openjdk.org/jdk/commit/120a9357b3cf63427a6c8539128b69b11b9beca3
28-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21738 Date: 2024-10-28 12:04:10 +0000
28-10-2024