< prev index next >

test/hotspot/jtreg/compiler/jvmci/events/JvmciNotifyInstallEventTest.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8136421
  27  * @requires vm.jvmci & !vm.graal.enabled & vm.compMode == "Xmixed"
  28  * @library / /test/lib
  29  * @library ../common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules java.base/jdk.internal.org.objectweb.asm
  32  *          java.base/jdk.internal.org.objectweb.asm.tree
  33  *          jdk.internal.vm.ci/jdk.vm.ci.hotspot
  34  *          jdk.internal.vm.ci/jdk.vm.ci.code
  35  *          jdk.internal.vm.ci/jdk.vm.ci.code.site
  36  *          jdk.internal.vm.ci/jdk.vm.ci.meta
  37  *          jdk.internal.vm.ci/jdk.vm.ci.runtime
  38  *          jdk.internal.vm.ci/jdk.vm.ci.services
  39  *
  40  * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  41  * @build compiler.jvmci.common.JVMCIHelpers
  42  * @run driver jdk.test.lib.FileInstaller ./JvmciNotifyInstallEventTest.config
  43  *     ./META-INF/services/jdk.vm.ci.services.JVMCIServiceLocator
  44  * @run driver ClassFileInstaller
  45  *      compiler.jvmci.common.JVMCIHelpers$EmptyHotspotCompiler
  46  *      compiler.jvmci.common.JVMCIHelpers$EmptyCompilerFactory
  47  *      compiler.jvmci.common.JVMCIHelpers$EmptyCompilationRequestResult
  48  *      compiler.jvmci.common.JVMCIHelpers$EmptyVMEventListener
  49  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  50  *     -Djvmci.Compiler=EmptyCompiler -Xbootclasspath/a:.
  51  *     -XX:+UseJVMCICompiler -XX:-BootstrapJVMCI
  52  *     compiler.jvmci.events.JvmciNotifyInstallEventTest
  53  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  54  *     -Djvmci.Compiler=EmptyCompiler -Xbootclasspath/a:.




  55  *     -XX:+UseJVMCICompiler -XX:-BootstrapJVMCI -XX:JVMCINMethodSizeLimit=0
  56  *     compiler.jvmci.events.JvmciNotifyInstallEventTest
  57  */
  58 
  59 package compiler.jvmci.events;
  60 
  61 import compiler.jvmci.common.CTVMUtilities;
  62 import compiler.jvmci.common.testcases.SimpleClass;
  63 import jdk.test.lib.Asserts;
  64 import jdk.test.lib.Utils;
  65 import jdk.vm.ci.services.JVMCIServiceLocator;
  66 import jdk.vm.ci.code.CompiledCode;
  67 import jdk.vm.ci.code.InstalledCode;
  68 import jdk.vm.ci.code.site.DataPatch;
  69 import jdk.vm.ci.code.site.Site;
  70 import jdk.vm.ci.hotspot.HotSpotCodeCacheProvider;
  71 import jdk.vm.ci.hotspot.HotSpotCompiledCode;
  72 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment;
  73 import jdk.vm.ci.hotspot.HotSpotCompiledNmethod;
  74 import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8136421
  27  * @requires vm.jvmci
  28  * @library / /test/lib
  29  * @library ../common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules java.base/jdk.internal.org.objectweb.asm
  32  *          java.base/jdk.internal.org.objectweb.asm.tree
  33  *          jdk.internal.vm.ci/jdk.vm.ci.hotspot
  34  *          jdk.internal.vm.ci/jdk.vm.ci.code
  35  *          jdk.internal.vm.ci/jdk.vm.ci.code.site
  36  *          jdk.internal.vm.ci/jdk.vm.ci.meta
  37  *          jdk.internal.vm.ci/jdk.vm.ci.runtime
  38  *          jdk.internal.vm.ci/jdk.vm.ci.services
  39  *
  40  * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  41  * @build compiler.jvmci.common.JVMCIHelpers
  42  * @run driver jdk.test.lib.FileInstaller ./JvmciNotifyInstallEventTest.config
  43  *     ./META-INF/services/jdk.vm.ci.services.JVMCIServiceLocator
  44  * @run driver ClassFileInstaller
  45  *      compiler.jvmci.common.JVMCIHelpers$EmptyHotspotCompiler
  46  *      compiler.jvmci.common.JVMCIHelpers$EmptyCompilerFactory
  47  *      compiler.jvmci.common.JVMCIHelpers$EmptyCompilationRequestResult
  48  *      compiler.jvmci.common.JVMCIHelpers$EmptyVMEventListener
  49  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  50  *     -Xbootclasspath/a:. -Xmixed
  51  *     -XX:+UseJVMCICompiler -XX:-BootstrapJVMCI
  52  *     compiler.jvmci.events.JvmciNotifyInstallEventTest
  53  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  54  *     -Djvmci.Compiler=EmptyCompiler -Xbootclasspath/a:. -Xmixed
  55  *     -XX:+UseJVMCICompiler -XX:-BootstrapJVMCI
  56  *     compiler.jvmci.events.JvmciNotifyInstallEventTest
  57  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  58  *     -Djvmci.Compiler=EmptyCompiler -Xbootclasspath/a:. -Xmixed
  59  *     -XX:+UseJVMCICompiler -XX:-BootstrapJVMCI -XX:JVMCINMethodSizeLimit=0
  60  *     compiler.jvmci.events.JvmciNotifyInstallEventTest
  61  */
  62 
  63 package compiler.jvmci.events;
  64 
  65 import compiler.jvmci.common.CTVMUtilities;
  66 import compiler.jvmci.common.testcases.SimpleClass;
  67 import jdk.test.lib.Asserts;
  68 import jdk.test.lib.Utils;
  69 import jdk.vm.ci.services.JVMCIServiceLocator;
  70 import jdk.vm.ci.code.CompiledCode;
  71 import jdk.vm.ci.code.InstalledCode;
  72 import jdk.vm.ci.code.site.DataPatch;
  73 import jdk.vm.ci.code.site.Site;
  74 import jdk.vm.ci.hotspot.HotSpotCodeCacheProvider;
  75 import jdk.vm.ci.hotspot.HotSpotCompiledCode;
  76 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment;
  77 import jdk.vm.ci.hotspot.HotSpotCompiledNmethod;
  78 import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime;


< prev index next >