提交 8c2cfb7d 编写于 作者: D dholmes

8016341: java/lang/ref/OOMEInReferenceHandler.java failing intermittently

Summary: Ensure WeakRef object can't be prematurely gc'd
Reviewed-by: chegar, plevart
上级 2a626bde
......@@ -23,9 +23,9 @@
/**
* @test
* @bug 7038914
* @bug 7038914 8016341
* @summary Verify that the reference handler does not die after an OOME allocating the InterruptedException object
* @run main/othervm -Xmx16M -XX:-UseTLAB OOMEInReferenceHandler
* @run main/othervm -Xmx24M -XX:-UseTLAB OOMEInReferenceHandler
* @author peter.levart@gmail.com
*/
......@@ -107,6 +107,6 @@ public class OOMEInReferenceHandler {
}
// no sure answer after 10 seconds
throw new IllegalStateException("Reference Handler thread stuck.");
throw new IllegalStateException("Reference Handler thread stuck. weakRef.get(): " + weakRef.get());
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册