RFR: 8342376: More reliable OOM handling in ExceptionDuringDumpAtObjectsInitPhase test [v2]

Aleksey Shipilev shade at openjdk.org
Thu Oct 17 09:31:25 UTC 2024


> Found a test bug while testing [JDK-8341913](https://bugs.openjdk.org/browse/JDK-8341913) with Shenandoah. For OOM testing, the test fills out the heap with large arrays and then attempts to allocate a smaller array.
> 
> That allocation almost always succeeds with Shenandoah. Actually, it succeeds with other GCs as well, it just so happens that other GCs throw OOM with "GC overhead limit exceeded".
> 
> Plus, some allocations should be sinked to avoid dead-code elimination.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, test now passes reliably with JDK-8341913 and Shenandoah
>  - [x] Linux x86_64 server fastdebug, test with {Serial, Parallel, G1, Shenandoah}, 50 times

Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:

  More precise code

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/21536/files
  - new: https://git.openjdk.org/jdk/pull/21536/files/26740b72..2fe33b19

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21536&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21536&range=00-01

  Stats: 6 lines in 1 file changed: 1 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/21536.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21536/head:pull/21536

PR: https://git.openjdk.org/jdk/pull/21536


More information about the hotspot-runtime-dev mailing list