according to javadoc, a notifyInstall event(HotSpotVMEventListener) should be called only for successfull code install:
/**
* Notify on successful install into the CodeCache.
*
* @param hotSpotCodeCacheProvider
* @param installedCode
* @param compResult
*/
but current HotSpotCodeCacheProvider::installMethod just call logOrDump=>....=>...notifyInstall(...) without any checks of runtime.getCompilerToVM().installCode result.
/**
* Notify on successful install into the CodeCache.
*
* @param hotSpotCodeCacheProvider
* @param installedCode
* @param compResult
*/
but current HotSpotCodeCacheProvider::installMethod just call logOrDump=>....=>...notifyInstall(...) without any checks of runtime.getCompilerToVM().installCode result.