Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRIU supports Java debugger during checkpoint and restore #377

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

JasonFengJ9
Copy link
Member

CRIU supports Java debugger during checkpoint and restore

Added support for a VM_RESTORE JVMTI event;
Added command line option suspendOnRestore=[y|n] to determine if the VM restored from a checkpoint is to be suspended;
-agentlib:jdwp=transport=dt_socket,server=y,suspend=[y|n] assumes suspendOnRestore=y;
Always respect suspendOnRestore=n regardless the order of suspend and suspendOnRestore, both
-agentlib:jdwp=transport=dt_socket,server=y,suspendOnRestore=n,suspend=y and -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,suspendOnRestore=n don't suspend the JVM post-restore.

Cherry-pick

Signed-off-by: Mike Zhang mike.h.zhang@ibm.com
Signed-off-by: Jason Feng fengj@ca.ibm.com

Added support for a VM_RESTORE JVMTI event;
Added an additional command line option suspendOnRestore=[y|n] to
determine if the VM restored from a checkpoint is to be suspended;
-agentlib:jdwp=transport=dt_socket,server=y,suspend=[y|n] assumes
suspendOnRestore=y;
Always respect suspendOnRestore=n regardless the order of suspend and
suspendOnRestore, both
-agentlib:jdwp=transport=dt_socket,server=y,suspendOnRestore=n,suspend=y
and -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,suspendOnRestore=n
don't suspend the JVM post-restore.

Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@keithc-ca
Copy link
Member

Jenkins test sanity xlinux jdk17

@keithc-ca keithc-ca merged commit 5f9204b into ibmruntimes:openj9 Aug 27, 2024
5 checks passed
@JasonFengJ9 JasonFengJ9 deleted the jdwpoptionfile branch August 27, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants