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

8264395: WB_EnqueueInitializerForCompilation fails with "method holder must be initialized" when called for uninitialized class #3757

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -24,11 +24,11 @@
/*
* @test
* @bug 8264395
* @summary testing of WB::enqueueInitializerForCompilation()
* @library /test/lib /
* @summary testing compilation of the class initializer of a class that is not initialized yet
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm/timeout=300 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI compiler.whitebox.TestEnqueueInitializerForCompilation
*/

@@ -43,15 +43,6 @@ public static void main(String[] args) {
}

static class LongWrapper {
final static LongWrapper ZERO = new LongWrapper(0);
private long val;

LongWrapper(long val) {
this.val = val;
}

static LongWrapper wrap(long val) {
return (val == 0L) ? ZERO : new LongWrapper(val);
}
final static LongWrapper ZERO = new LongWrapper();
}
}