changeset 6085:3b6c30f3b201

8009259: TEST_BUG: sun/misc/Cleaner/exitOnThrow.sh failing intermittently Reviewed-by: chegar, alanb
author ewang
date Tue, 05 Mar 2013 10:10:55 +0000
parents 1dcdd2e31524
children 7103e7d73b6d
files test/sun/misc/Cleaner/ExitOnThrow.java test/sun/misc/Cleaner/exitOnThrow.sh
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/misc/Cleaner/ExitOnThrow.java	Fri Apr 12 12:12:53 2013 -0700
+++ b/test/sun/misc/Cleaner/ExitOnThrow.java	Tue Mar 05 10:10:55 2013 +0000
@@ -28,21 +28,17 @@
 
 public class ExitOnThrow {
 
-    private static volatile boolean ran = false;
-
     public static void main(String[] args) throws Exception {
         Cleaner.create(new Object(),
                        new Runnable() {
                                public void run() {
-                                   ran = true;
                                    throw new RuntimeException("Foo!");
                                }
                            });
-        while (!ran) {
+        while (true) {
             System.gc();
             Thread.sleep(100);
         }
-        System.exit(0);
     }
 
 }
--- a/test/sun/misc/Cleaner/exitOnThrow.sh	Fri Apr 12 12:12:53 2013 -0700
+++ b/test/sun/misc/Cleaner/exitOnThrow.sh	Tue Mar 05 10:10:55 2013 +0000
@@ -25,7 +25,7 @@
 
 #
 # @test
-# @bug 4954921
+# @bug 4954921 8009259
 # @summary Ensure that if a cleaner throws an exception then the VM exits
 #
 # @build ExitOnThrow