# HG changeset patch # User sangheki # Date 1503519659 0 # Node ID 61273934927909b735b202305604d4d605c56f34 # Parent 9d444ac611a9b99bcf246409d49cb89578cac401# Parent 7bdccf51db41746f05ba452f481d554f2219a0b9 Merge diff -r 7bdccf51db41 -r 612739349279 hotspot/test/gc/logging/TestPrintReferences.java --- a/hotspot/test/gc/logging/TestPrintReferences.java Wed Aug 23 18:28:45 2017 +0000 +++ b/hotspot/test/gc/logging/TestPrintReferences.java Wed Aug 23 20:20:59 2017 +0000 @@ -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());