Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6962434

jmap dump MaxNewSize=4M as '5439488', but expected 4194304

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      JMAP with -XX:MaxNewSize=4M, dumps it's core and expects that " jmap -heap output shows value of MaxNewSize"==4194304, but it's show '5439488'. The issue is not regression from latest updates.

      Looking at
      http://vice.russia.sun.com/results/1.6.0_20/b06_j4b/vm/solaris10-x64-64_vm.tmtools.testlist/ResultDir/jmap_heap_config_MaxNewSize_core/test.xml
      The test executes a JVM

      <debuggee type="debuggee" id="debuggee" connection="core">
      <parameter value="tmtools.jmap.share.JMapDebuggee"/>
      <jvmParameter value="-XX:MaxNewSize=4M"/>
      </debuggee>

      with -XX:MaxNewSize=4M, dumps it's core and expects that " jmap -heap output shows value of MaxNewSize"==4194304

      <parameter name="property" value="MaxNewSize"/>
      <parameter name="value" value="4194304"/>

      The tests throw the exception:

      tmtools/jmap/heap_config/jmap_heap_config_MaxNewSize_core
      tmtools/jmap/heap_config/jmap_heap_config_MaxNewSize_live

      nsk.share.TestFailure: Unexpected value of key MaxNewSize: '5439488', expected '4194304'
      at tmtools.jmap.share.heap.ConfigurationAnalyzer.checkMemPropertyValue(ConfigurationAnalyzer.java:45)
      at tmtools.jmap.share.heap.ConfigurationAnalyzer.checkPropertyValue(ConfigurationAnalyzer.java:22)
      at tmtools.jmap.share.heap.ConfigurationPropertyAnalyzer.analyse(ConfigurationPropertyAnalyzer.java:15)
      at tmtools.share.Test.doTest(Test.java:218)
      at tmtools.share.TestSuite.execute(TestSuite.java:172)
      at tmtools.share.TestSuite.main(TestSuite.java:206)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rkapshevsunw Roman Kapshevich (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: