RFR: 8361827: [TESTBUG] serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java throws OutOfMemoryError

Christoph Langer clanger at openjdk.org
Mon Jul 14 07:39:39 UTC 2025


On Sat, 12 Jul 2025 06:10:31 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> This pr makes sure to call System.gc() before each test in UnmountedVThreadNativeMethodAtTop.java
> 
> The intention is to get rid of unreachable objects representing loaded heap dumps from previous tests.
> 
> This prevents OutOfMemoryErrors. Parsing the smaller dumps is faster too.
> 
> The PR also includes a reproducer for convenient testing of the pr.

Looks good and likely improves test performance and stability.

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

Marked as reviewed by clanger (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26278#pullrequestreview-3015091182


More information about the serviceability-dev mailing list