HeapMonitorStatArrayCorrectnessTest fails due to sampling determinism

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 13
    • Affects Version/s: 13
    • Component/s: hotspot
    • b21

      open/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java

      ----------System.err:(15/1343)----------
      Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
      Unexpected high difference percentage: 15.181792950319178 due to the count being 4150.0 instead of 3603
      java.lang.RuntimeException: Statistics should show about 3603.6036036036035 samples; but have 4150 instead for the size 100000
      at MyPackage.HeapMonitorStatArrayCorrectnessTest.main(HeapMonitorStatArrayCorrectnessTest.java:88)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Statistics should show about 3603.6036036036035 samples; but have 4150 instead for the size 100000
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Statistics should show about 3603.6036036036035 samples; but have 4150 instead for the size 100000

            Assignee:
            Jean Christophe Beyler
            Reporter:
            Leo Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: