From fa658b079d4795ec72867b7cc4561884714d69b7 Mon Sep 17 00:00:00 2001 From: Dmitry Petrochenko Date: Fri, 16 May 2014 13:24:40 +0700 Subject: [PATCH] x86_64: Fix 079-Phantom hang with QCG enabled The 079 test creates "sWatcher" thread. In case of unexpected failure (e.g. Exception thrown) the sWatcher thread remains alive and it blocks VM shutdown. We mark the sWarcher thread as daemon and let VM to stop that thread during shutdown cause by unexpected error. Change-Id: I0cb0b8bbeb15de47b72ddae1a32fcfea3ef8720e Signed-off-by: Dmitry Petrochenko --- test/079-phantom/src/Bitmap.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/079-phantom/src/Bitmap.java b/test/079-phantom/src/Bitmap.java index 9d03cbd3d..85eb3ccb9 100644 --- a/test/079-phantom/src/Bitmap.java +++ b/test/079-phantom/src/Bitmap.java @@ -29,6 +29,7 @@ public class Bitmap { new ReferenceQueue(); private static BitmapWatcher sWatcher = new BitmapWatcher(sPhantomQueue); static { + sWatcher.setDaemon(true); sWatcher.start(); }; -- 2.11.0