JDK-8230645 : CDS regions get loaded with the wrong alignment
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2019-09-05
  • Updated: 2020-08-19
  • Resolved: 2020-06-02
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 15
15Resolved
Related Reports
Duplicate :  
Relates :  
Description
CDS regions require metaspace alignment; however, they are loaded with hardcoded allocation granularity (see filemap.cpp:1369ff).

Since metaspace alignment is usually allocation granularity, this is only a problem if one modifies metaspace and changes the alignment. In that case, cds asserts at loading time.


Comments
Fixed with JDK-8243392
02-06-2020

See also JDK-8236847 CDS archive with 4K alignment unusable on machines with 64k pages
16-04-2020

This issue is unresolved; in the context of the upcoming Elastic Metaspace this needs to be fixed.
16-04-2020

This will be fixed as part of Ioi's "8231610 Relocate the CDS archive if it cannot be mapped to the requested address" patch.
12-11-2019

ILW = MLM = P4
10-09-2019