-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRIU supports Java debugger during checkpoint and restore
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 <[email protected]> Signed-off-by: Jason Feng <[email protected]>
- Loading branch information
1 parent
eb870f1
commit 64aa5c7
Showing
21 changed files
with
557 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
closed/src/jdk.jdi/share/classes/com/sun/jdi/event/VMRestoreEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*[INCLUDE-IF CRIU_SUPPORT]*/ | ||
/* | ||
* =========================================================================== | ||
* (c) Copyright IBM Corp. 2023, 2024 All Rights Reserved | ||
* =========================================================================== | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. | ||
* | ||
* IBM designates this particular file as subject to the "Classpath" exception | ||
* as provided by IBM in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* =========================================================================== | ||
*/ | ||
package com.sun.jdi.event; | ||
|
||
import com.sun.jdi.ThreadReference; | ||
import com.sun.jdi.VirtualMachine; | ||
|
||
/** | ||
* Notification of when the VM is restored from a checkpoint. Similar to | ||
* VMStartEvent this occurs before application code has run, including any | ||
* application hooks for the restore event. | ||
* The event is generated even if not explicitly requested. | ||
* | ||
* @see VMStartEvent | ||
* @see VMDeathEvent | ||
* @see EventQueue | ||
* @see VirtualMachine | ||
*/ | ||
public interface VMRestoreEvent extends Event { | ||
|
||
/** | ||
* Returns the thread which is restoring the VM from a checkpoint. | ||
* | ||
* @return a {@link ThreadReference} representing the restore thread | ||
* on the target VM. | ||
*/ | ||
public ThreadReference thread(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.