changeset 7648:7bb17aa9a09f

8016341: java/lang/ref/OOMEInReferenceHandler.java failing intermittently Summary: Ensure WeakRef object can't be prematurely gc'd Reviewed-by: chegar, plevart
author dholmes
date Tue, 09 Jul 2013 22:01:57 -0400
parents 83c2976ef8ee
children 780a64979c8d
files test/java/lang/ref/OOMEInReferenceHandler.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/ref/OOMEInReferenceHandler.java	Tue Jul 09 16:00:41 2013 +0100
+++ b/test/java/lang/ref/OOMEInReferenceHandler.java	Tue Jul 09 22:01:57 2013 -0400
@@ -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 @@
          }
 
          // no sure answer after 10 seconds
-         throw new IllegalStateException("Reference Handler thread stuck.");
+         throw new IllegalStateException("Reference Handler thread stuck. weakRef.get(): " + weakRef.get());
      }
 }