Request for review (S): 7022037: Pause when exiting if a debugger is attached on windows

Dmitry Samersoff Dmitry.Samersoff at oracle.com
Thu Feb 24 06:57:48 PST 2011


Staffan,

As far as this future brakes all debug automation scripts over the world 
and may have unpredictable side effects I would like to have
it turned off by default.

-Dmitry


On 2011-02-24 17:49, Staffan Larsen wrote:
>> Does the method IsDebuggerPresent() distinguish between Visual
>> Studio,
>> windbg, cdbg, adplus and so one?
>
> No, I think it works for all of them. See: http://msdn.microsoft.com/en-us/library/ms680345(VS.85).aspx
>
>> Can we automatically turn this future off when debugging remote JVM
>> or windows service?
>
> I'm not sure how to do that, but I added an option to turn it off manually: -XX:-PauseAtExit
>
>> Can we detect JVM launched by custom launcher (not a java.exe) and
>> turn this future off in this case (custom launcher could have no console)?
>
> Don't know how to do that automatically. I'm actually mostly interested in having it turned on for the hotspot.exe launcher.
>
> /Staffan


-- 
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...


More information about the hotspot-runtime-dev mailing list