openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Ensure JIT/AOT code is not invalidated post-restore under `-XX:+DebugOnRestore`

Open dsouzai opened this issue 1 year ago • 0 comments

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).

dsouzai avatar Aug 22 '24 21:08 dsouzai