Request for review (S): 7022037: Pause when exiting if a debugger is attached on windows
Henrik Österdahl
henrik.osterdahl at oracle.com
Thu Feb 24 06:16:49 PST 2011
On 2011-02-24 14:49, Staffan Larsen wrote:
> http://cr.openjdk.java.net/~sla/7022037/webrev.00/
>
> When running in Visual Studio the console window is closed as soon as
> the debugged process ends (whether it is a normal end or an assert).
> This makes it impossible to see the output from the process after it has
> ended.
>
> Suggested fix: At the end of normal execution we can check if a debugger
> is present and wait for a keypress before exiting. At the end of an
> assert we also check if a debugger is attached and use the same method
> as -XX:+ShowMessageBoxOnError to catch the error in the debugger.
Looks good.
This functionality already exists in JRockit and is very useful.
/H
More information about the hotspot-runtime-dev
mailing list