openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Off heap

Open LinHu2016 opened this issue 1 year ago • 2 comments

Introduce Off-Heap Technology for Large Arrays in Balanced Region-Based Garbage Collector carryforward from https://github.com/eclipse-openj9/openj9/pull/14667

LinHu2016 avatar Sep 19 '23 18:09 LinHu2016

There is summary across platforms for case decommit does nothing (memory is not disclaimed). So, because of incompatibility with off-heap we either should not allow this modes or disallow off-heap (TBD).

AIX:

  • memory allocated in 16m or 16g pages (supports 4k and 64k pages)

ZOS:

  • memory allocated in any fixed (non-pageable) pages (supports 4k pageable and 1m pageable, does not support 1m fixed and 2g fixed)

Linux:

  • memory allocated in Large Shared pages (supports small pages and Transparent Huge Pages, does not support non-transparent Huge pages)

OSX:

  • no limitations

Windows:

  • memory allocated in any pager other than 4k (2m pages)

ZTPF:

  • does not allow to recommit any memory

dmitripivkine avatar Oct 27 '23 19:10 dmitripivkine

On the top of this, disclaiming memory can be disabled by -XX:-DisclaimVirtualMemory for all platforms.

dmitripivkine avatar Oct 30 '23 14:10 dmitripivkine