-
Enhancement
-
Resolution: Won't Fix
-
P4
-
1.3.0
-
generic
-
generic
Name: tb29552 Date: 01/03/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
The description for JPDA's com.sun.jdi.VirtualMachine.exit(int) method
indicates that when this method is called to stop a debuggee (commonly used to
implement the Stop feature of a debugger) that the debuggee is stopped abruptly
such that "Threads running in the mirrored VM are abruptly terminated. A thread
death exception is not thrown and finally blocks are not run."
This is fine, however we propose that another exit() method be provide that
will more gracefully shutdown the debuggee such that the debuggee's runtime
hooks (if any) added by calling java.lang.Runtime.addShutdownHook() gets called
before the debuggee is terminated. This would be useful when one is debugging a
server process that needs to clean up resources in its shutdown hook.
(Review ID: 114476)
======================================================================
- relates to
-
JDK-8274072 Crash in ZStatPhaseCycle::register_start while executing com/sun/jdi/JITDebug
-
- Open
-