mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8364503: gc/g1/TestCodeCacheUnloadDuringConcCycle.java fails because of race printing to stdout
Reviewed-by: ayang, dholmes
This commit is contained in:
parent
487cc3c5be
commit
c56fb0b6ef
@ -147,6 +147,7 @@ class TestCodeCacheUnloadDuringConcCycleRunner {
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
System.out.println("Running to breakpoint: " + args[0]);
|
||||
try {
|
||||
WB.concurrentGCAcquireControl();
|
||||
WB.concurrentGCRunTo(args[0]);
|
||||
@ -157,9 +158,12 @@ class TestCodeCacheUnloadDuringConcCycleRunner {
|
||||
|
||||
WB.concurrentGCRunToIdle();
|
||||
} finally {
|
||||
// Make sure that the marker we use to find the expected log message is printed
|
||||
// before we release whitebox control, i.e. before the expected garbage collection
|
||||
// can start.
|
||||
System.out.println(TestCodeCacheUnloadDuringConcCycle.AFTER_FIRST_CYCLE_MARKER);
|
||||
WB.concurrentGCReleaseControl();
|
||||
}
|
||||
System.out.println(TestCodeCacheUnloadDuringConcCycle.AFTER_FIRST_CYCLE_MARKER);
|
||||
Thread.sleep(1000);
|
||||
triggerCodeCacheGC();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user