changeset 13565:e2f3c8029dd8

8186402: [TESTBUG] "Balance queues" output expected by test Summary: Changed to use 2 ParallelGCThreads to guarantee generating 'Balance queues' log Reviewed-by: tschatzl, aharlap
author sangheki
date Wed, 23 Aug 2017 13:14:20 -0700
parents 21bdc1a84c9f
children 15e4b56998ec
files test/gc/logging/TestPrintReferences.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/logging/TestPrintReferences.java	Wed Aug 23 16:37:33 2017 +0000
+++ b/test/gc/logging/TestPrintReferences.java	Wed Aug 23 13:14:20 2017 -0700
@@ -23,7 +23,7 @@
 
 /*
  * @test TestPrintReferences
- * @bug 8136991
+ * @bug 8136991 8186402
  * @summary Validate the reference processing logging
  * @key gc
  * @library /test/lib
@@ -42,6 +42,8 @@
     ProcessBuilder pb_enabled = ProcessTools.createJavaProcessBuilder("-Xlog:gc+phases+ref=debug",
                                                                       "-XX:+UseG1GC",
                                                                       "-Xmx10M",
+                                                                      // Explicit thread setting is required to avoid using only 1 thread
+                                                                      "-XX:ParallelGCThreads=2",
                                                                       GCTest.class.getName());
     OutputAnalyzer output = new OutputAnalyzer(pb_enabled.start());