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/ timed out #3375

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


Just for now

@@ -61,6 +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 boolean ready = false;

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