< prev index next >

test/compiler/jvmci/events/JvmciNotifyBootstrapFinishedEventTest.java

Print this page
rev 12121 : 8167180: [JVMCI] Exported elements referring to inaccessible types in jdk.vm.ci

*** 35,47 **** * jdk.vm.ci/jdk.vm.ci.meta * jdk.vm.ci/jdk.vm.ci.runtime * * @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper * @build compiler.jvmci.common.JVMCIHelpers - * @run driver jdk.test.lib.FileInstaller ../common/services/ ./META-INF/services/ * @run driver jdk.test.lib.FileInstaller ./JvmciNotifyBootstrapFinishedEventTest.config ! * ./META-INF/services/jdk.vm.ci.hotspot.services.HotSpotVMEventListener * @run driver ClassFileInstaller * compiler.jvmci.common.JVMCIHelpers$EmptyHotspotCompiler * compiler.jvmci.common.JVMCIHelpers$EmptyCompilerFactory * compiler.jvmci.common.JVMCIHelpers$EmptyCompilationRequestResult * compiler.jvmci.common.JVMCIHelpers$EmptyVMEventListener --- 35,46 ---- * jdk.vm.ci/jdk.vm.ci.meta * jdk.vm.ci/jdk.vm.ci.runtime * * @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper * @build compiler.jvmci.common.JVMCIHelpers * @run driver jdk.test.lib.FileInstaller ./JvmciNotifyBootstrapFinishedEventTest.config ! * ./META-INF/services/jdk.vm.ci.services.JVMCIServiceLocator * @run driver ClassFileInstaller * compiler.jvmci.common.JVMCIHelpers$EmptyHotspotCompiler * compiler.jvmci.common.JVMCIHelpers$EmptyCompilerFactory * compiler.jvmci.common.JVMCIHelpers$EmptyCompilationRequestResult * compiler.jvmci.common.JVMCIHelpers$EmptyVMEventListener
*** 58,70 **** */ package compiler.jvmci.events; import jdk.test.lib.Asserts; ! import jdk.vm.ci.hotspot.services.HotSpotVMEventListener; ! public class JvmciNotifyBootstrapFinishedEventTest extends HotSpotVMEventListener { private static final boolean BOOTSTRAP = Boolean .getBoolean("compiler.jvmci.events.JvmciNotifyBootstrapFinishedEventTest.bootstrap"); private static volatile int gotBoostrapNotification = 0; public static void main(String args[]) { --- 57,70 ---- */ package compiler.jvmci.events; import jdk.test.lib.Asserts; ! import jdk.vm.ci.services.JVMCIServiceLocator; ! import jdk.vm.ci.hotspot.HotSpotVMEventListener; ! public class JvmciNotifyBootstrapFinishedEventTest extends JVMCIServiceLocator implements HotSpotVMEventListener { private static final boolean BOOTSTRAP = Boolean .getBoolean("compiler.jvmci.events.JvmciNotifyBootstrapFinishedEventTest.bootstrap"); private static volatile int gotBoostrapNotification = 0; public static void main(String args[]) {
*** 74,82 **** --- 74,90 ---- Asserts.assertEQ(gotBoostrapNotification, 0, "Got unexpected bootstrap event"); } } @Override + public <S> S getProvider(Class<S> service) { + if (service == HotSpotVMEventListener.class) { + return service.cast(this); + } + return null; + } + + @Override public void notifyBootstrapFinished() { gotBoostrapNotification++; } }
< prev index next >