Skip to content

Commit

Permalink
Fix code heap initial sizes to be multiple of rs.alignment()
Browse files Browse the repository at this point in the history
  • Loading branch information
eastig committed Nov 28, 2023
1 parent 41cc20b commit 17c42cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/code/codeCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ void CodeCache::add_heap(const ReservedSpace& rs, const char* name, CodeBlobType
// Special Reserve Space is fully committed.
size_initial = rs.size();
}
size_initial = align_up(size_initial, rs.page_size());
size_initial = align_up(size_initial, rs.alignment());
assert(size_initial <= rs.size(), "Initial size must not exceed reserved size");

if (!heap->reserve(rs, size_initial, CodeCacheSegmentSize)) {
Expand Down

0 comments on commit 17c42cd

Please sign in to comment.