test/java/lang/ref/OOMEInReferenceHandler.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Cdiff test/java/lang/ref/OOMEInReferenceHandler.java

test/java/lang/ref/OOMEInReferenceHandler.java

Print this page

        

*** 21,31 **** * questions. */ /** * @test ! * @bug 7038914 * @summary Verify that the reference handler does not die after an OOME allocating the InterruptedException object * @run main/othervm -Xmx16M -XX:-UseTLAB OOMEInReferenceHandler * @author peter.levart@gmail.com */ --- 21,31 ---- * questions. */ /** * @test ! * @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 * @author peter.levart@gmail.com */
*** 105,112 **** throw new Exception("Reference Handler thread died."); } } // no sure answer after 10 seconds ! throw new IllegalStateException("Reference Handler thread stuck."); } } --- 105,112 ---- throw new Exception("Reference Handler thread died."); } } // no sure answer after 10 seconds ! throw new IllegalStateException("Reference Handler thread stuck. weakRef.get(): " + weakRef.get()); } }
test/java/lang/ref/OOMEInReferenceHandler.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File