RFR (S) 8220153: Shenandoah does not work with TransparentHugePages properly

Aleksey Shipilev shade at redhat.com
Fri Mar 8 17:30:08 UTC 2019



There are several troubles in current code. First, we need to make sure heap is aligned to make it
madvise'able by shared code during commits. Second, we have to pretouch with smaller pages when THP
is enabled, because we need to tell kernel all these smaller pages can be for coalesced into a huge
one. Third, when pretouching, it is apparently important to pretouch contiguous spaces separately (I
haven't verified why, but it is empirically better).

Unfortunately, constructing a reliable regression test proved hard, so I had to resort to manual

Testing: adhoc runs with THP enabled, hotspot_gc_shenandoah {with and without -XX:+UseTHP}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20190308/a21c58ea/signature.asc>

More information about the hotspot-gc-dev mailing list