<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ramki,<div class=""><br class=""></div><div class="">if you want jtreg to pass a flag to JDK under test,you should specify by jtreg -javaoptions flag[1]:</div><div class=""><br class=""></div><div class="">/home/ramki/9dev/build/linux-x86_64-normal-server-release/images/jdk/bin/java -jar /home/ramki/jtreg/lib/jtreg.jar -verbose:all -javaoptions:-XX:ConcGCThreads=1 -jdk:/home/ramki/9dev/build/linux-x86_64-normal-server-release/images/jdk  /home/ramki/9dev/hotspot/test/gc/g1/TestEagerReclaimHumongousRegionsClearMarkBits.java </div><div class=""><br class=""></div><div class="">[1] <a href="http://openjdk.java.net/jtreg/command-help.html" class="">http://openjdk.java.net/jtreg/command-help.html</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-- Igor</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2017, at 9:16 AM, Ram Krishnan <<a href="mailto:ramkri123@gmail.com" class="">ramkri123@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace">Hi Dima,<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks.<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">I tried your suggestion and also examined the .jtr file in ​JTWork/gc/g1/ folder. I am getting the same results as before.<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,<br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Ramki<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Apr 18, 2017 at 8:12 AM, Dmitry Fazunenko <span dir="ltr" class=""><<a href="mailto:dmitry.fazunenko@oracle.com" target="_blank" class="">dmitry.fazunenko@oracle.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" class="">
    Hi Ramki,<br class="">
    <br class="">
    I think you need to specify "-jdk:<your_java_home>" option to
    jtreg:<br class="">
    <br class="">
/home/ramki/9dev/build/linux-<wbr class="">x86_64-normal-server-release/<wbr class="">images/jdk/bin/java
    -jar /home/ramki/jtreg/lib/jtreg.<wbr class="">jar -verbose:all  <b class="">-jdk:/home/ramki/9dev/build/<wbr class="">linux-x86_64-normal-server-<wbr class="">release/images/jdk</b> 
/home/ramki/9dev/hotspot/test/<wbr class="">gc/g1/<wbr class="">TestEagerReclaimHumongousRegio<wbr class="">nsClearMarkBits.java
    <br class="">
    <br class="">
    More information about test execution you can find in the .jtr file
    created in <div style="font-family:courier new,monospace;display:inline" class="gmail_default">​​</div>JTWork/gc/g1/ folder.<br class="">
    <br class="">
    Thanks,<br class="">
    Dima<br class="">
    <br class="">
    <br class="">
    <br class="">
    <div class="gmail-m_-195160196713425840moz-cite-prefix">On 18.04.2017 17:56, Ram Krishnan
      wrote:<br class="">
    </div>
    <blockquote type="cite" class="">
      <div dir="ltr" class="">
        <div style="font-family:courier new,monospace" class="">Hi Dmitry,<br class="">
          <br class="">
          Thanks, more below. <br class="">
          <br class="">
          In the expanded command line option, ​ConcGCThread is indeed
          set to 1 as expected in the ​ReclaimRegionFastclass JVM. In
          the direct jtreg option, ​ConcGCThread is 0 in both JVMs. The
          usage details are below. My build is based on JDK 9 and I
          downloaded the latest jtreg. There may be something wrong in
          my jtreg usage -- can you please clarify?<br class="">
          <br class="">
          Using jtreg directly does not work <br class="">
          ------------------------------<wbr class="">----<br class="">
/home/ramki/9dev/build/linux-<wbr class="">x86_64-normal-server-release/<wbr class="">images/jdk/bin/java
          -jar /home/ramki/jtreg/lib/jtreg.<wbr class="">jar -verbose:all
/home/ramki/9dev/hotspot/test/<wbr class="">gc/g1/<wbr class="">TestEagerReclaimHumongousRegio<wbr class="">nsClearMarkBits.java
          <br class="">
          <br class="">
        </div>
        <div style="font-family:courier new,monospace" class="">Command line option works<br class="">
        </div>
        <div style="font-family:courier new,monospace" class="">-------------------------<br class="">
/home/ramki/9dev/build/linux-<wbr class="">x86_64-normal-server-release/<wbr class="">images/jdk/bin/java
          -cp
/home/ramki/9dev/hotspot/test/<wbr class="">JTwork/classes/gc/g1:/home/<wbr class="">ramki/9dev/hotspot/test/gc/g1:<wbr class="">/home/ramki/9dev/hotspot/test/<wbr class="">JTwork/classes/test/lib:/home/<wbr class="">ramki/9dev/test/lib:/home/<wbr class="">ramki/jtreg/lib/javatest.jar:/<wbr class="">home/ramki/jtreg/lib/jtreg.jar
          -XX:+UseG1GC -Xms128M -Xmx128M -Xmn2M -XX:G1HeapRegionSize=1M
          -XX:<wbr class="">InitiatingHeapOccupancyPercent<wbr class="">=0 -Xlog:gc
          -XX:+UnlockDiagnosticVMOptions -XX:+VerifyAfterGC
          -XX:ConcGCThreads=1 -XX:+<wbr class="">IgnoreUnrecognizedVMOptions
          -XX:+G1VerifyBitmaps -XX:<wbr class="">G1GcCpuLLCCachePartitionPercen<wbr class="">t=48
          ReclaimRegionFast<br class="">
          <br class="">
        </div>
        <div style="font-family:courier new,monospace" class="">Thanks,<br class="">
        </div>
        <div style="font-family:courier new,monospace" class="">Ramki<br class="">
        </div>
        <div class="gmail_extra"><br class="">
          <div class="gmail_quote">On Mon, Apr 17, 2017 at 11:21 PM,
            Dmitry Fazunenko <span dir="ltr" class=""><<a href="mailto:dmitry.fazunenko@oracle.com" target="_blank" class="">dmitry.fazunenko@oracle.com</a>></span>
            wrote:<br class="">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" class=""> Hi Ramki,<br class="">
                <br class="">
                It's very unlikely to be an issue related to jtreg
                somehow.<br class="">
                I ran the test you mentioned manually, this is the quote
                from .jtr file:<br class="">
                ...<br class="">
                Command line: [/jdk9/solaris-sparcv9/bin/jav<wbr class="">a -d64
                -cp
                /home/fa/hs-int/hotspot/test/g<wbr class="">c/g1/JTwork/classes/gc/g1:/hom<wbr class="">e/fa/hs-int/hotspot/test/gc/<wbr class="">g1:/home/fa/hs-int/hotspot/tes<wbr class="">t/gc/g1/JTwork/classes/test/<wbr class="">lib:/home/fa/hs-int/test/lib:/<wbr class="">home/fa/jtreg/lib/javatest.<wbr class="">jar:/home/fa/jtreg/lib/jtreg.<wbr class="">jar
                -XX:+UseG1GC -Xms128M -Xmx128M -Xmn2M
                -XX:G1HeapRegionSize=1M -XX:InitiatingHeapOccupancyPer<wbr class="">cent=0
                -Xlog:gc -XX:+UnlockDiagnosticVMOptions
                -XX:+VerifyAfterGC <b class="">-XX:ConcGCThreads=1</b> -XX:+IgnoreUnrecognizedVMOptio<wbr class="">ns
                -XX:+G1VerifyBitmaps
                <div class="">​​</div>
                ReclaimRegionFast ]<br class="">
                ...<br class="">
                All the VM options are passed as expected.<br class="">
                <br class="">
                > I have confirmed this through prints in the JVM
                code base.<br class="">
                I'm not sure what do you mean here, but I guess you did
                something wrong.<br class="">
                <br class="">
                Please note, during execution of this test two JVM are
                launched:<br class="">
                - the first one started by jtreg (<span id="gmail-m_-195160196713425840gmail-m_6845836460534788464l115" class="">TestEagerReclaimHumongousRegi<wbr class="">onsClearMarkBits
                  class)<br class="">
                  - the second started by test (</span><span id="gmail-m_-195160196713425840gmail-m_6845836460534788464l51" class="">ReclaimRegionFast
                  class)</span><br class="">
                <br class="">
                In the first one
                <div class="">​​</div>
                ConcGCThread should be set to 0.<br class="">
                <br class="">
                Thanks,<br class="">
                Dima<br class="">
                <br class="">
                <div class="gmail-m_-195160196713425840gmail-m_6845836460534788464moz-cite-prefix">On
                  18.04.2017 3:09, Ram Krishnan wrote:<br class="">
                </div>
                <blockquote type="cite" class="">
                  <div dir="ltr" class="">
                    <div style="font-family:courier new,monospace" class="">Hi
                      Jenny,<br class="">
                      <br class="">
                    </div>
                    <div style="font-family:courier new,monospace" class="">I
                      tried what you suggested. Hotspot output indeed
                      shows ​ConcGCThreads as 1.<br class="">
                      <br class="">
                    </div>
                    <div style="font-family:courier new,monospace" class="">The
                      problem seems to be interaction with jtreg.<br class="">
                    </div>
                    <div style="font-family:courier new,monospace" class=""><br class="">
                    </div>
                    <div style="font-family:courier new,monospace" class="">Thanks,<br class="">
                    </div>
                    <div style="font-family:courier new,monospace" class="">Ramki<br class="">
                    </div>
                    <div class="gmail_extra"><br class="">
                      <div class="gmail_quote">On Mon, Apr 17, 2017 at
                        4:49 PM, Jenny Zhang <span dir="ltr" class=""><<a href="mailto:yu.zhang@oracle.com" target="_blank" class="">yu.zhang@oracle.com</a>></span>
                        wrote:<br class="">
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div bgcolor="#FFFFFF" class=""> Ramki,<br class="">
                            <br class="">
                            Can you do the following to be sure that
                            hotspot did not take the parameter?<br class="">
                            java -XX:
                            <div class="">​​</div>
                            ConcGCThreads=1 -XX:+PrintFlagsFinal<br class="">
                            <br class="">
                            I am using jdk9b154, the output shows it
                            changed the ConcGCThreads to 1<br class="">
                            <br class="">
                            Thanks<br class="">
                            Jenny<br class="">
                            <br class="">
                            <div class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail-m_-1427578904799488884moz-cite-prefix">On
                              4/17/2017 4:33 PM, Ram Krishnan wrote:<br class="">
                            </div>
                            <blockquote type="cite" class="">
                              <div dir="ltr" class="">
                                <div style="font-family:courier new,monospace" class="">Many thanks Jonathan
                                  for the immediate reply. <br class="">
                                  <br class="">
                                  I am copying the hotspot gc team.<br class="">
                                  <br class="">
                                </div>
                                <div style="font-family:courier new,monospace" class="">Hotspot gc team -- your
                                  help would be much appreciated on the
                                  topic below.<br class="">
                                </div>
                                <div style="font-family:courier new,monospace" class=""><br class="">
                                </div>
                                <div style="font-family:courier new,monospace" class="">Thanks,<br class="">
                                </div>
                                <div style="font-family:courier new,monospace" class="">Ramki<br class="">
                                </div>
                                <div class="gmail_extra"><br class="">
                                  <div class="gmail_quote">On Mon, Apr
                                    17, 2017 at 2:29 PM, Jonathan
                                    Gibbons <span dir="ltr" class=""><<a class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail-m_-1427578904799488884moz-txt-link-abbreviated" href="mailto:jonathan.gibbons@oracle.com" target="_blank">jonathan.gibbons@oracle.com</a>></span>
                                    wrote:<br class="">
                                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                      <div bgcolor="#FFFFFF" class=""> <br class="">
                                        <br class="">
                                        <div class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail-m_-1427578904799488884m_7592252218846305182m_7329919051798114277moz-cite-prefix">On
                                          04/17/2017 02:18 PM, Ram
                                          Krishnan wrote:<br class="">
                                        </div>
                                        <blockquote type="cite" class="">
                                          <div dir="ltr" class="">
                                            <div style="font-family:courier new,monospace" class="">Hi,<br class="">
                                              <br class="">
                                            </div>
                                            <div style="font-family:courier new,monospace" class="">I have been
                                              able to successfully run
                                              all the tests in
                                              hotspot/test/gc/g1 using
                                              jtreg.<br class="">
                                              <br class="">
                                            </div>
                                            <div style="font-family:courier new,monospace" class="">The only
                                              gotcha I am facing is that
                                              the JVM startup options
                                              specified in process
                                              builder does not have any
                                              effect. I have confirmed
                                              this through prints in the
                                              JVM code base.<br class="">
                                              <br class="">
                                            </div>
                                            <div style="font-family:courier new,monospace" class="">For
                                              example, <br clear="all" class="">
                                            </div>
                                            <div class="">​/hotspot/test/gc/g1/​
TestEagerReclaimHumongousRegio<wbr class="">nsClearMarkBits.java modifies the
                                              "-XX:ConcGCThreads=1", but
                                              inside the JVM code to
                                              value of ConcGCThreads is
                                              still zero.<br class="">
                                            </div>
                                            <br class="">
                                            <div class="">​I am new to jtreg and
                                              openjdk and probably
                                              missing something obvious.
                                              Your help would be much
                                              appreciated. <br class="">
                                              <br class="">
                                              Thanks in advance,​</div>
                                            <div class="">​Ramki​</div>
                                            <br class="">
                                          </div>
                                        </blockquote>
                                        <br class="">
                                        Ramki,<br class="">
                                        <br class="">
                                        This does not look like an issue
                                        with jtreg, since the behavior
                                        you are apparently seeing is all
                                        within the test code and its
                                        libraries.<br class="">
                                        <br class="">
                                        You might want to follow up with
                                        the Hotspot team, who would have
                                        more familiarity with these
                                        tests and the associated
                                        libraries.<br class="">
                                        <br class="">
                                        -- Jon<br class="">
                                        <br class="">
                                      </div>
                                    </blockquote>
                                  </div>
                                  <br class="">
                                  <br clear="all" class="">
                                  <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class=""> <span class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail-HOEnZb"><font color="#888888" class=""> <br class="">
                                          -- <br class="">
                                          <div class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail-m_-1427578904799488884m_7592252218846305182gmail_signature">
                                            <div dir="ltr" class="">Thanks, 
                                              <div class="">Ramki<br class="">
                                              </div>
                                            </div>
                                          </div>
                                        </font></span></font></span></div>
                                <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class=""> </font></span></div>
                              <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class=""> </font></span></blockquote>
                            <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class=""> <br class="">
                              </font></span></div>
                          <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class=""> </font></span></blockquote>
                        <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class="">
                          </font></span></div>
                      <span class="gmail-m_-195160196713425840gmail-HOEnZb"><font color="#888888" class="">
                          <br class="">
                          <br clear="all" class=""><span class="gmail-HOEnZb"><font color="#888888" class="">
                          <br class="">
                          -- <br class="">
                          <div class="gmail-m_-195160196713425840gmail-m_6845836460534788464gmail_signature">
                            <div dir="ltr" class="">Thanks, 
                              <div class="">Ramki<br class="">
                              </div>
                            </div>
                          </div>
                        </font></span></font></span></div><span class="gmail-HOEnZb"><font color="#888888" class="">
                  </font></span></div><span class="gmail-HOEnZb"><font color="#888888" class="">
                </font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888" class="">
                <br class="">
              </font></span></div><span class="gmail-HOEnZb"><font color="#888888" class="">
            </font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888" class="">
          </font></span></div><span class="gmail-HOEnZb"><font color="#888888" class="">
          <br class="">
          <br clear="all" class="">
          <br class="">
          -- <br class="">
          <div class="gmail-m_-195160196713425840gmail_signature">
            <div dir="ltr" class="">Thanks, 
              <div class="">Ramki<br class="">
              </div>
            </div>
          </div>
        </font></span></div>
      </div>
    </blockquote>
    <br class="">
  </div>

</blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class="">Thanks, <div class="">Ramki<br class=""></div></div></div>
</div></div>
</div></blockquote></div><br class=""></div></body></html>