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

wants to merge 3 commits into from
Changes from 1 commit
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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();