<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 2/24/2011 8:15 AM, Staffan Larsen wrote:
<blockquote cite="mid:79d985b3-e1f4-4907-9330-df664bddd8e7@default"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
  <div class="WordSection1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Right
- I see the problem. We've used the same code in JRockit forever, but
of course we had the luxury of introducing the flag early and all of
our tests were written to be aware of it...</span></p>
  </div>
</blockquote>
<tt><br>
I'm fairly certain that the nightly infrastructure<br>
disables ShowMessageBoxOnError for Win* configs for<br>
that very reason...<br>
<br>
<br>
</tt>
<blockquote cite="mid:79d985b3-e1f4-4907-9330-df664bddd8e7@default"
 type="cite">
  <div class="WordSection1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">How
about, as others suggested, we enable it only when the hotspot.exe
launcher is used? This is the use-case I am interested in, and I don't
think any tests would be using it.</span></p>
  </div>
</blockquote>
<tt><br>
I would be ok with that. If there are tests using the<br>
hotspot.exe launcher then they would be few...<br>
<br>
Dan<br>
<br>
<br>
</tt>
<blockquote cite="mid:79d985b3-e1f4-4907-9330-df664bddd8e7@default"
 type="cite">
  <div class="WordSection1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Thanks,<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">/Staffan<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
Daniel D. Daugherty <br>
  <b>Sent:</b> den 24 februari 2011 4:11<br>
  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:hotspot-runtime-dev@openjdk.java.net">hotspot-runtime-dev@openjdk.java.net</a><br>
  <b>Subject:</b> Re: Request for review (S): 7022037: Pause when
exiting if a debugger is attached on windows<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal"><tt><span style="font-size: 10pt;">Trying again
since I got a bounce from the Oracle mailer...</span></tt><br>
  <br>
On 2/24/2011 7:49 AM, Staffan Larsen wrote: <o:p></o:p></p>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
    <pre>Does the method IsDebuggerPresent() distinguish between Visual<o:p></o:p></pre>
    <pre>Studio,<o:p></o:p></pre>
    <pre>windbg, cdbg, adplus and so one?<o:p></o:p></pre>
    <pre>    <o:p></o:p></pre>
  </blockquote>
  <pre><o:p> </o:p></pre>
  <pre>No, I think it works for all of them. See: <a
 moz-do-not-send="true"
 href="http://msdn.microsoft.com/en-us/library/ms680345%28VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/ms680345(VS.85).aspx</a><o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre>  <o:p></o:p></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
    <pre>Can we automatically turn this future off when debugging remote JVM<o:p></o:p></pre>
    <pre>or windows service?<o:p></o:p></pre>
    <pre>    <o:p></o:p></pre>
  </blockquote>
  <pre><o:p> </o:p></pre>
  <pre>I'm not sure how to do that, but I added an option to turn it off manually: -XX:-PauseAtExit<o:p></o:p></pre>
  <pre>  <o:p></o:p></pre>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><br>
  <tt>So for tests where we are intentionally causing a crash in order</tt><br>
  <tt>to attach to the crash dump, we will need to add this new option.</tt><br>
  <tt>I'm thinking about SA tests here.</tt><br>
  <br>
  <tt>More likely we will need:</tt><br>
  <br>
  <tt>    -XX:+IgnoreUnrecognizedVMOptions -XX:-PauseAtExit</tt><br>
  <br>
  <tt>in order for the tests to work with VMs that don't have the
option.</tt><br>
  <br>
  <tt>Dan</tt><br>
  <br>
  <br>
  <br>
  </span><o:p></o:p></p>
  <pre><o:p> </o:p></pre>
  <pre>  <o:p></o:p></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
    <pre>Can we detect JVM launched by custom launcher (not a java.exe) and<o:p></o:p></pre>
    <pre>turn this future off in this case (custom launcher could have no console)?<o:p></o:p></pre>
    <pre>    <o:p></o:p></pre>
  </blockquote>
  <pre><o:p> </o:p></pre>
  <pre>Don't know how to do that automatically. I'm actually mostly interested in having it turned on for the hotspot.exe launcher.<o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre>/Staffan<o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre>  <o:p></o:p></pre>
  </div>
  </div>
</blockquote>
</body>
</html>