8322278: Generational ZGC: Adjust the comment of ZHeuristics::use_per_cpu_shared_small_pages

Reviewed-by: eosterlund
This commit is contained in:
Guoxiong Li 2024-01-10 12:18:12 +00:00
parent 2e472fe7ea
commit 679f526d89

View File

@ -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;