RFR: 8311248: Refactor CodeCache::initialize_heaps to simplify adding new CodeCache segments [v10]

Boris Ulasevich bulasevich at openjdk.org
Wed Apr 3 13:11:29 UTC 2024


> These changes clean up the logic and the code of allocating codecache segments and add more testing of it, to open a door for further optimization of code cache segmentation.  The goal was to keep the behavior as close to the existing behavior as possible, even if it's not quite logical.
> 
> Also, these changes better account for alignment - PrintFlagsFinal shows the final aligned segment sizes, and the segments fill the ReservedCodeCacheSize without gaps caused by alignment.

Boris Ulasevich has updated the pull request incrementally with three additional commits since the last revision:

 - Update src/hotspot/share/memory/virtualspace.cpp
   
   Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>
 - Update src/hotspot/share/code/codeCache.cpp
   
   Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>
 - Update src/hotspot/share/code/codeCache.cpp
   
   style fix
   
   Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/17244/files
  - new: https://git.openjdk.org/jdk/pull/17244/files/b39dffdf..83c7aeea

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17244&range=09
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17244&range=08-09

  Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/17244.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17244/head:pull/17244

PR: https://git.openjdk.org/jdk/pull/17244


More information about the hotspot-dev mailing list