This test should not run out of memory. The tests specifies a 32MB heap. When running on Linux/x64, the heap usage is never over 50% after GC finishes.
However, in one recent mach5 run on linux/aarch64, we get lots of OOM and eventually CDS dumping failed due toJDK-8254309:
$ grep ZHeap hs_err_pid22387.log
ZHeap used 32M, capacity 32M, max capacity 32M
ZHeap used 32M, capacity 32M, max capacity 32M
ZHeap used 32M, capacity 32M, max capacity 32M
....
However, in one recent mach5 run on linux/aarch64, we get lots of OOM and eventually CDS dumping failed due to
$ grep ZHeap hs_err_pid22387.log
ZHeap used 32M, capacity 32M, max capacity 32M
ZHeap used 32M, capacity 32M, max capacity 32M
ZHeap used 32M, capacity 32M, max capacity 32M
....
- relates to
-
JDK-8256390 ZGC: Relocate in-place instead of having a heap reserve
- Resolved
-
JDK-8254309 appcds GCDuringDump.java failed - class must exist
- Resolved