Parallel AlwaysPreTouch

Per Liden per.liden at
Sun Dec 1 21:30:06 UTC 2019

On 2019-12-01 22:06, Thomas Schatzl wrote:
> Hi,
> On Sun, 2019-12-01 at 22:03 +0100, Alen Vrečko wrote:
>> Hello, everyone.
>> Looking at the code. It looks like ZGC uses a single threaded
>> PreTouch. Both the G1 and Shenandoah use a parallel PreTouch.
>> Any plans to make ZGC PreTouch parallel? Apologies if I missed
>> something in the code. But I am seeing G1 do the pretouch much faster
>> than ZGC for the same heap size.
>    the change for this (
> ) is currently in review.

And here's the review thread, with the patch:

I've been holding off pushing this to avoid conflicts with the Windows 
port. We expect to push both within the next few days.


More information about the zgc-dev mailing list