openj9
openj9 copied to clipboard
Ensure JIT/AOT code is not invalidated post-restore under `-XX:+DebugOnRestore`
https://github.com/eclipse-openj9/openj9/pull/19754 adds VM Support for Debug On Restore. As the code stands, this will result in the JIT invalidating all code post-restore because it is unable to distinguish between FSD mode caused by the VM or the user.
This PR fixes this by adding the following changes:
- Cache the status of certain runtime events
- Return early from isFSDNeeded under
-XX:+DebugOnRestore
Depends on https://github.com/eclipse-openj9/openj9/pull/19754 (specifically the update to the isDebugOnRestoreEnabled API).