<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Martin,<br>
    <br>
    Thanks for getting back to me about the test case. Although I
    haven't seen any jbb2013 failures, the fix is still good. I'll push
    it today.<br>
    <br>
    JohnC<br>
    <br>
    <div class="moz-cite-prefix">On 4/17/2013 5:00 AM, Doerr, Martin
      wrote:<br>
    </div>
    <blockquote
cite="mid:7C9B87B351A4BA4AA9EC95BB4181165668F42E62@DEWDFEMB13A.global.corp.sap"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:DE;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
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 2.0cm 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" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">Hi John,<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">we have seen crashes when running SPEC jbb2013
            on linux x86_64 with the following options (with our
            SAPJVM):<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">-XX:+UseCompressedOops -Xms8192m -Xmx8192m
            -Xmn1600m -XX:+UseG1GC -XX:SurvivorRatio=4<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">With these options, our VM uses zero based
            compressed oops (shift 3).<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">It crashed with SIGSEGV:<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">#  SIGSEGV (0xb) at pc=0x000000004a4c2e00,
            pid=1961, tid=140227895330560<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"># accessing faulting address:
            0x000000004a4c2e00<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">#<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"># JRE version: 7.0_21<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"># Java VM: SAP Java Server VM (7.1.130414
            23.5-b02 Apr 14 2013 19:29:41 - dev - optU - linux amd64 - 6
            - bas2:193987 (mixed mode) compressed oops)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"># Problematic frame:<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"># C  0x000000004a4c2e00 (sp=0x00007f8959e37ad8)
            (pc=0x000000004a4c2e00)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US">The same test is passing since we fixed this
            issue.<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE">Best
            regards,<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE">Martin<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Courier
            New";color:windowtext;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE"
                lang="EN-US"> John Cuthbertson
                [<a class="moz-txt-link-freetext" href="mailto:john.cuthbertson@oracle.com">mailto:john.cuthbertson@oracle.com</a>] <br>
                <b>Sent:</b> Mittwoch, 17. April 2013 01:42<br>
                <b>To:</b> Doerr, Martin<br>
                <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:hotspot-gc-dev@openjdk.java.net">hotspot-gc-dev@openjdk.java.net</a><br>
                <b>Subject:</b> Re: RFR (S): G1: Fix bug with compressed
                oops on x86_64 and sparc<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Hi Martin,<br>
          <br>
          This looks good to me. Coleen has also reviewed the change and
          given it the thumbs up. I'll let you get back to me regarding
          a test case before pushing the changes.<br>
          <br>
          JohnC<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 4/16/2013 1:38 AM, Doerr, Martin
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi all,<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">we found a G1 bug i</span><span
              style="mso-fareast-language:DE" lang="EN-US">n the
              template interpreter on x86_64 and sparc with compressed
              Oops.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">“do_oop_store” performs a “</span><span
              style="background:silver;mso-highlight:silver"
              lang="EN-US">store_heap_oop</span><span lang="EN-US">”
              which compresses the input register.</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">This compressed Oop is
              passed to the succeeding
            </span><span style="mso-fareast-language:DE" lang="EN-US">g1_write_barrier_post,
              which is wrong.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">Correctly, g1_write_barrier_post needs the
              uncompressed Oop for the heap region crossing check.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">This fix preserves the uncompressed Oop in a
              register which gets passed to the g1_write_barrier_post:</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US"><a moz-do-not-send="true"
                href="http://cr.openjdk.java.net/%7Egoetz/webrevs/g1-cOops_bug/">http://cr.openjdk.java.net/~goetz/webrevs/g1-cOops_bug/</a></span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">Please supply a bug id and review this
              change.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">Kind regards,</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US">Martin</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:DE"
              lang="EN-US"> </span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>