Skip to content

Commit

Permalink
8322278: Generational ZGC: Adjust the comment of ZHeuristics::use_per…
Browse files Browse the repository at this point in the history
…_cpu_shared_small_pages

Reviewed-by: eosterlund
  • Loading branch information
lgxbslgx committed Jan 10, 2024
1 parent 2e472fe commit 679f526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/z/zHeuristics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ size_t ZHeuristics::relocation_headroom() {
}

bool ZHeuristics::use_per_cpu_shared_small_pages() {
// Use per-CPU shared small pages only if these pages occupy at most 3.125%
// of the max heap size. Otherwise fall back to using a single shared small
// Use per-CPU shared small pages only if these pages don't have a significant
// heap overhead. Otherwise fall back to using a single shared small
// page. This is useful when using small heaps on large machines.
const size_t per_cpu_share = significant_heap_overhead() / ZCPU::count();
return per_cpu_share >= ZPageSizeSmall;
Expand Down

1 comment on commit 679f526

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.