8067751: OOMEInReferenceHandler.java fails: Cleaner terminated abnormally
authorjmasa
Tue, 20 Jan 2015 13:29:26 -0800
changeset 28673 4dbf48487f1f
parent 28528 6b55dd30a0ba
child 28674 9c49f00a2b58
8067751: OOMEInReferenceHandler.java fails: Cleaner terminated abnormally Summary: OOME with message "GC overhead limit exceeded". -XX:-UseGCOverheadLimit was added to avoid OOME in resource handler. Reviewed-by: jmasa, jwilhelm Contributed-by: michail.chernov@oracle.com
jdk/test/java/lang/ref/OOMEInReferenceHandler.java
--- a/jdk/test/java/lang/ref/OOMEInReferenceHandler.java	Thu Jan 15 19:23:49 2015 -0800
+++ b/jdk/test/java/lang/ref/OOMEInReferenceHandler.java	Tue Jan 20 13:29:26 2015 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
  * @test
  * @bug 7038914 8016341
  * @summary Verify that the reference handler does not die after an OOME allocating the InterruptedException object
- * @run main/othervm -Xmx24M -XX:-UseTLAB OOMEInReferenceHandler
+ * @run main/othervm -XX:-UseGCOverheadLimit -Xmx24M -XX:-UseTLAB OOMEInReferenceHandler
  * @author peter.levart@gmail.com
  */