RFR: 8362482: [TESTBUG] serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java: System.gc() does not provide full GC

Richard Reingruber rrich at openjdk.org
Thu Jul 24 07:28:39 UTC 2025


Call WhiteBox.fullGC()  instead of System.gc() for a guaranteed full GC.
It is assumed that one full GC is sufficient for these tests.

Testing was done with fastdebug and release builds on the main platforms and also on Linux/PPC64le and AIX.

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

Commit messages:
 - Merge branch 'master'
 - Use /native option
 - Use WhiteBox::fullGC instead of System::gc

Changes: https://git.openjdk.org/jdk/pull/26363/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26363&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8362482
  Stats: 7 lines in 1 file changed: 5 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/26363.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26363/head:pull/26363

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


More information about the serviceability-dev mailing list