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

8264672: runtime/ParallelLoad/ParallelSuperTest.java timed out #3375

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -61,7 +61,7 @@ public Class loadClass(String name) throws ClassNotFoundException {
private static boolean parallel = false;
private Object sync = new Object();
private Object thread_sync = new Object();
private static volatile boolean ready = false;
private static volatile boolean waiting = false;

private void makeThreadWait() {
if (!parallel) { return; }
@@ -74,7 +74,7 @@ private void makeThreadWait() {
synchronized(sync) {
try {
ThreadPrint.println("t1 waits parallelCapable loader");
ready = true;
waiting = true;
sync.wait(); // Give up lock before request to load B
} catch (InterruptedException e) {}
}
@@ -90,7 +90,7 @@ private void makeThreadWait() {
// Non-parallelCapable class loader thread will be woken up by the jvm.
private void wakeUpThread() {
if (isRegisteredAsParallelCapable()) {
while (!ready) {
while (!waiting) {
try {
Thread.sleep(1);
} catch (InterruptedException e) {}
ProTip! Use n and p to navigate between commits in a pull request.