[lworld] Integrated: 8376461: [lworld] serviceability/jvmti/valhalla/HeapDump/HeapDump.java fails More than 1 instances of 'TestClass' found
Alex Menkov
amenkov at openjdk.org
Fri Feb 20 19:13:20 UTC 2026
On Fri, 13 Feb 2026 21:20:23 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> TestClass is a container class which contains a number of value object, main test process and target VM create TestClass object, so the test can compare the object and its representation in the target VM heap dump.
> After JDK-8376135 `new TestClass()` may cause unreachable TestClass instance is still in the heap, so it appears in the heap dump too.
> The simplest solution is to make TestClass non-value class (actual tested value classes are nested classes of TestClass)
This pull request has now been integrated.
Changeset: 7ec54d5f
Author: Alex Menkov <amenkov at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/7ec54d5f745d51d73a3acf02a3fe60137da5c7eb
Stats: 2 lines in 2 files changed: 0 ins; 1 del; 1 mod
8376461: [lworld] serviceability/jvmti/valhalla/HeapDump/HeapDump.java fails More than 1 instances of 'TestClass' found
Reviewed-by: cjplummer, sspitsyn
-------------
PR: https://git.openjdk.org/valhalla/pull/2109
More information about the valhalla-dev
mailing list