< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMEventListener.java
Print this page
rev 12121 : 8167180: [JVMCI] Exported elements referring to inaccessible types in jdk.vm.ci
*** 18,78 ****
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package jdk.vm.ci.hotspot.services;
import jdk.vm.ci.code.CompiledCode;
import jdk.vm.ci.code.InstalledCode;
- import jdk.vm.ci.hotspot.HotSpotCodeCacheProvider;
- import jdk.vm.ci.services.JVMCIPermission;
/**
! * Service-provider class for responding to VM events.
*/
! public abstract class HotSpotVMEventListener {
!
! private static Void checkPermission() {
! SecurityManager sm = System.getSecurityManager();
! if (sm != null) {
! sm.checkPermission(new JVMCIPermission());
! }
! return null;
! }
!
! @SuppressWarnings("unused")
! HotSpotVMEventListener(Void ignore) {
! }
!
! /**
! * Initializes a new instance of this class.
! *
! * @throws SecurityException if a security manager has been installed and it denies
! * {@link JVMCIPermission}
! */
! protected HotSpotVMEventListener() {
! this(checkPermission());
! }
/**
* Notifies this client that the VM is shutting down.
*/
! public void notifyShutdown() {
}
/**
* Notify on successful install into the code cache.
*
! * @param hotSpotCodeCacheProvider
! * @param installedCode
! * @param compiledCode
*/
! public void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) {
}
/**
* Notify on completion of a bootstrap.
*/
! public void notifyBootstrapFinished() {
}
}
--- 18,54 ----
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package jdk.vm.ci.hotspot;
import jdk.vm.ci.code.CompiledCode;
import jdk.vm.ci.code.InstalledCode;
/**
! * Listener for responding to VM events.
*/
! public interface HotSpotVMEventListener {
/**
* Notifies this client that the VM is shutting down.
*/
! default void notifyShutdown() {
}
/**
* Notify on successful install into the code cache.
*
! * @param hotSpotCodeCacheProvider the code cache into which the code was installed
! * @param installedCode the code that was installed
! * @param compiledCode the compiled code from which {@code installedCode} was produced
*/
! default void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) {
}
/**
* Notify on completion of a bootstrap.
*/
! default void notifyBootstrapFinished() {
}
}
< prev index next >