changeset 240:7c9a56ccbb50

Bug 3418: [TEST] GCWatcher and SnapShotProcessor tests might hang Reviewed-by: ykubota https://github.com/HeapStats/heapstats/pull/107
author Yasumasa Suenaga <yasuenag@gmail.com>
date Mon, 10 Jul 2017 21:29:28 +0900
parents d55f9fa978b6
children 5ee1c4138b61
files ChangeLog agent/test/race-condition/GCWatcher/SnapShotProcessor/testcase/Test.java agent/test/race-condition/SnapShotProcessor/GCWatcher/testcase/Test.java
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 29 17:37:47 2017 +0900
+++ b/ChangeLog	Mon Jul 10 21:29:28 2017 +0900
@@ -1,3 +1,7 @@
+2017-07-10 Yasumasa Suenaga <yasuenag@gmail.com>
+
+	* Bug 3418: [TEST] GCWatcher and SnapShotProcessor tests might hang
+
 2017-06-29 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
 
 	* Bug 3416: Remove inheritance from each modules
--- a/agent/test/race-condition/GCWatcher/SnapShotProcessor/testcase/Test.java	Thu Jun 29 17:37:47 2017 +0900
+++ b/agent/test/race-condition/GCWatcher/SnapShotProcessor/testcase/Test.java	Mon Jul 10 21:29:28 2017 +0900
@@ -20,6 +20,7 @@
 
   public static void main(String[] args) throws Exception{
     System.gc();
+    Thread.sleep(3000); // Sleep 3 sec to wait breakpoint...
     System.gc();
   }
 
--- a/agent/test/race-condition/SnapShotProcessor/GCWatcher/testcase/Test.java	Thu Jun 29 17:37:47 2017 +0900
+++ b/agent/test/race-condition/SnapShotProcessor/GCWatcher/testcase/Test.java	Mon Jul 10 21:29:28 2017 +0900
@@ -38,6 +38,7 @@
 
   public static void main(String[] args) throws Exception{
     System.gc();
+    Thread.sleep(3000); // Sleep 3 sec to wait breakpoint...
     System.gc();
   }