Skip to content

8364503: gc/g1/TestCodeCacheUnloadDuringConcCycle.java fails because of race printing to stdout #26592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ private static void triggerCodeCacheGC() throws Exception {
}

public static void main(String[] args) throws Exception {
System.out.println("Running to breakpoint: " + args[0]);
try {
WB.concurrentGCAcquireControl();
WB.concurrentGCRunTo(args[0]);
Expand All @@ -157,9 +158,12 @@ public static void main(String[] args) throws Exception {

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();
}
Expand Down