JDK 23 |
---|
23 b18Fixed |
Causes :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
`CodeCache::initialize_heaps` assumes CodeCache is a combination of NonProfiledCodeHeap, ProfiledCodeHeap and NonNMethodCodeHeap. Adding new CodeCache segments causes a lot of changes in the function. We need to refactor the function to minimize changes when new segments are added to CodeCache. The ideal solution should be `CodeCache::initialize_heaps` not to depend on any particular code heap at all. It should accept a valid CodeCache layout description and initialize each code heap according to the description. A valid CodeCache layout description is created based on defaults, cmd options and ergonomics. The process of the description creation can fail if it is not possible to have a requested CodeCache layout.
|