Skip to content
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