TestDirectBufferStatisticsEvent failed with too few statistics events

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: repo-valhalla, 27
    • Component/s: hotspot
    • jfr

      The test jfr/event/runtime/TestDirectBufferStatisticsEvent.java failed, reporting fewer events than expected.

      ----------System.out:(18/319)----------
      jdk.DirectBufferStatistics {
        startTime = 00:50:18.246 (2026-01-09)
        maxCapacity = 768.0 MB
        count = 0
        totalCapacity = 0 bytes
        memoryUsed = 0 bytes
      }


      jdk.DirectBufferStatistics {
        startTime = 00:50:18.253 (2026-01-09)
        maxCapacity = 768.0 MB
        count = 13
        totalCapacity = 13.0 MB
        memoryUsed = 13.0 MB
      }


      ----------System.err:(13/884)----------
      java.lang.RuntimeException: Too few count in statistics event: expected 13 >= 16
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at jdk.test.lib.Asserts.assertGreaterThanOrEqual(Asserts.java:348)
      at jdk.jfr.event.runtime.TestDirectBufferStatisticsEvent.main(TestDirectBufferStatisticsEvent.java:77)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Too few count in statistics event: expected 13 >= 16

            Assignee:
            Denghui Dong
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: