Closed
Description
The CRIU interpreter was added here, #17245, to do
- Enable support for hooks (needed for xtrace and xdump)
- Allow one to avoid using the debug interpreter at starup
Now that we have the ability to transition to the debug interpreter on restore, we no longer need the criu interpreter. Instead we can start with the standard interpreter, and transition to the debug interpreter if needed.
Steps
- Add a new field in
J9CRIUCheckpointState
called debugInterpreterRequested - The hooks for
criuRestoreInitializeTrace
andcriuRestoreInitializeDump
set thedebugInterpreterRequested
to true - In
checkTransitionToDebugInterpreter
check if debugInterpreterRequested is set then attempt to transition to the debug interpreter. - Add a new restore hook (similar to the ones above) and take the code in
checkTransitionToDebugInterpreter
that looks for theVMOPT_XXDEBUGINTERPRETER
and move it to that function. It should set thedebugInterpreterRequested
if debug interpreter is there. - Move
checkTransitionToDebugInterpreter
to afterrunInternalJVMRestoreHooks