Integrated: 8268127: Shenandoah: Heap size may be too small for region to align to large page size
zgu at openjdk.java.net
Tue Jun 8 20:34:27 UTC 2021
On Wed, 2 Jun 2021 20:47:32 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> TestLargePages.java failed on Linux AArch64, where large page size is 500M, and the test is configured to run with much smaller heap, e.g. 131M.
> This is *not* AArch64 specific, just none of our regular test machines has large page setup.
> I purpose two invariants:
> 1) Heap size always aligns up to page size that is requested.
> 2) Region size always aligns up to page size that is requested if heap is large enough to accommodate them. Otherwise, it aligns up to regular page size.
> This partially reverts JDK-8266802.
> Obviously, this is a corner case and is unlikely seen in real word. The alternative is to disable UseLargePages if heap size is too small, e.g. align_up(heap_size, page_size) < MIN_NUM_REGIONS.
This pull request has now been integrated.
Author: Zhengyu Gu <zgu at openjdk.org>
Stats: 33 lines in 3 files changed: 20 ins; 0 del; 13 mod
8268127: Shenandoah: Heap size may be too small for region to align to large page size
Reviewed-by: rkennke, shade
More information about the hotspot-gc-dev