本文整理汇总了Java中jdk.vm.ci.hotspot.HotSpotVMEventListener类的典型用法代码示例。如果您正苦于以下问题:Java HotSpotVMEventListener类的具体用法?Java HotSpotVMEventListener怎么用?Java HotSpotVMEventListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HotSpotVMEventListener类属于jdk.vm.ci.hotspot包,在下文中一共展示了HotSpotVMEventListener类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProvider
import jdk.vm.ci.hotspot.HotSpotVMEventListener; //导入依赖的package包/类
<T> T getProvider(Class<T> service, HotSpotGraalJVMCIServiceLocator locator) {
if (service == JVMCICompilerFactory.class) {
return service.cast(new HotSpotGraalCompilerFactory(locator));
} else if (service == HotSpotVMEventListener.class) {
if (graalRuntime != null) {
return service.cast(new HotSpotGraalVMEventListener(graalRuntime));
}
}
return null;
}
示例2: getProvider
import jdk.vm.ci.hotspot.HotSpotVMEventListener; //导入依赖的package包/类
@Override
public <S> S getProvider(Class<S> service) {
if (service == HotSpotVMEventListener.class) {
return service.cast(this);
}
return null;
}
示例3: getProvider
import jdk.vm.ci.hotspot.HotSpotVMEventListener; //导入依赖的package包/类
@Override
public <S> S getProvider(Class<S> service) {
if (service == JVMCICompilerFactory.class) {
return service.cast(new EmptyCompilerFactory());
}
if (service == HotSpotVMEventListener.class) {
return service.cast(new EmptyVMEventListener());
}
return null;
}
示例4: getProvider
import jdk.vm.ci.hotspot.HotSpotVMEventListener; //导入依赖的package包/类
<T> T getProvider(Class<T> service, HotSpotGraalJVMCIServiceLocator locator) {
if (service == JVMCICompilerFactory.class) {
addExports();
return service.cast(new HotSpotGraalCompilerFactory(locator));
} else if (service == HotSpotVMEventListener.class) {
if (graalRuntime != null) {
addExports();
return service.cast(new HotSpotGraalVMEventListener(graalRuntime));
}
}
return null;
}