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

Richard Reingruber rrich at openjdk.org
Wed Jul 16 06:14:49 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.

Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/26278#issuecomment-3077005624


More information about the serviceability-dev mailing list