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

serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java test fails

    Details

      Description

      Even with JDK-8223441 changes the test still intermittently fails. The recent failure:

      ----------System.out:(3/57)----------
      Testing size 1000
      Testing size 10000
      Testing size 100000
      ----------System.err:(22/2044)----------
      Unexpected high difference percentage: 12.461837357757425 due to the count being 4052.0 instead of 3603
      Unexpected high difference percentage: 13.736644928541695 due to the count being 8197.0 instead of 7207
      Unexpected high difference percentage: 14.079555966697502 due to the count being 12332.0 instead of 10810
      Unexpected high difference percentage: 13.493825447481615 due to the count being 16359.0 instead of 14414
      Unexpected high difference percentage: 14.274614274614274 due to the count being 20590.0 instead of 18018
      Unexpected high difference percentage: 14.231534156607003 due to the count being 24698.0 instead of 21621
      Unexpected high difference percentage: 15.008919722497522 due to the count being 29011.0 instead of 25225
      Unexpected high difference percentage: 15.262938809490773 due to the count being 33228.0 instead of 28828
      Unexpected high difference percentage: 15.62037493833251 due to the count being 37498.0 instead of 32432
      java.lang.RuntimeException: Statistics should show about 32432.432432432433 samples; but have 37498 instead for the size 100000
      at MyPackage.HeapMonitorStatArrayCorrectnessTest.main(HeapMonitorStatArrayCorrectnessTest.java:99)
      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 32432.432432432433 samples; but have 37498 instead for the size 100000
      JavaTest Message: shutting down test

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcbeyler Jean Christophe Beyler
                Reporter:
                dtitov Daniil Titov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: