code review for attach on demand (AOD) fix for Windows (7028668)

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 18 02:09:22 PDT 2011


Daniel D. Daugherty wrote:
> Greetings,
>
> I have minor fixes to the Attach On Demand (AOD) Windows
> specific code that I'd like to get into T&L snapshot for
> OpenJDK7-B136 (next week):
>
>    http://cr.openjdk.java.net/~dcubed/7028668-webrev/0/
>
> I'm adding more info to the default detail message for an
> OpenProcess() failure. I'm also getting a process handle
> in a different way when a Java process tries to attach to
> itself. If the new technique fails, then we fall back to
> the original OpenProcess() code.
>
> Thanks, in advance, for any comments.
>
> Dan
>
Can you elaborate more



I suspect you may be chasing a resource issue. If OpenProcess fails when 
ThrowIOExceptionWithLastError will attempt translate the error into a 
system message.


More information about the hotspot-runtime-dev mailing list