[8] RFR: Shenandoah: specialize String Table scans for better pause performance

Aleksey Shipilev shade at redhat.com
Tue May 19 11:43:06 UTC 2020


On 5/19/20 1:34 PM, Zhengyu Gu wrote:
>   935   assert(UseShenandoahGC, "Only for Shenandoah");
>   936   const int chunk_size = limit / (ParallelGCThreads * 10);
>   937
> 
> Maybe need to guard against minimum chunk_size? even through, it is 
> unlikely, but possible chunk_size == 0.

Oh yeah. Let's do this:
  const int chunk_size = MAX2(ClaimChunkSize, limit / (ParallelGCThreads * 10));


-- 
Thanks,
-Aleksey



More information about the shenandoah-dev mailing list