src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/HotSpotLazyInitializationTest.java
changeset 58299 6df94ce3ab2f
parent 50858 2d3e99a72541
equal deleted inserted replaced
58298:0152ad7b38b8 58299:6df94ce3ab2f
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 
    24 
    25 package org.graalvm.compiler.hotspot.test;
    25 package org.graalvm.compiler.hotspot.test;
    26 
    26 
    27 import org.graalvm.compiler.core.test.GraalCompilerTest;
    27 import org.graalvm.compiler.core.test.GraalCompilerTest;
    28 import org.graalvm.compiler.hotspot.meta.HotSpotClassInitializationPlugin;
    28 import org.graalvm.compiler.hotspot.meta.HotSpotAOTClassInitializationPlugin;
    29 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions;
    29 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions;
    30 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration.Plugins;
    30 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration.Plugins;
    31 import org.junit.Assert;
    31 import org.junit.Assert;
    32 import org.junit.Assume;
    32 import org.junit.Assume;
    33 import org.junit.Test;
    33 import org.junit.Test;
    34 
    34 
    35 import jdk.vm.ci.meta.ResolvedJavaMethod;
    35 import jdk.vm.ci.meta.ResolvedJavaMethod;
    36 
    36 
    37 public class HotSpotLazyInitializationTest extends GraalCompilerTest {
    37 public class HotSpotLazyInitializationTest extends GraalCompilerTest {
    38 
    38 
    39     HotSpotClassInitializationPlugin classInitPlugin = new HotSpotClassInitializationPlugin();
    39     HotSpotAOTClassInitializationPlugin classInitPlugin = new HotSpotAOTClassInitializationPlugin();
    40 
    40 
    41     @Override
    41     @Override
    42     protected Plugins getDefaultGraphBuilderPlugins() {
    42     protected Plugins getDefaultGraphBuilderPlugins() {
    43         Plugins plugins = super.getDefaultGraphBuilderPlugins();
    43         Plugins plugins = super.getDefaultGraphBuilderPlugins();
    44         plugins.setClassInitializationPlugin(classInitPlugin);
    44         plugins.setClassInitializationPlugin(classInitPlugin);