diff --git a/src/main/java/org/jvnet/hudson/test/MemoryAssert.java b/src/main/java/org/jvnet/hudson/test/MemoryAssert.java index 159bb63e5..46ae1143b 100644 --- a/src/main/java/org/jvnet/hudson/test/MemoryAssert.java +++ b/src/main/java/org/jvnet/hudson/test/MemoryAssert.java @@ -197,6 +197,7 @@ public static void assertGC(WeakReference reference, boolean allowSoft) { return !referent.equals(reference) || !(referredFrom instanceof WeakReference); } }) + "; apparent weak references: " + fromRoots(Collections.singleton(obj), null, null, ScannerUtils.skipObjectsFilter(Collections.singleton(reference), true)); + System.err.println(softErr); } } }