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

Improve jfr/event/allocation tests reliability

XMLWordPrintable

    • jfr
    • b10

        $ CONF=linux-x86-server-fastdebug make run-test TEST=jdk/jfr/event/allocation/TestObjectAllocationInNewTLABEvent.java

        STDOUT:
        STDERR:
        java.lang.RuntimeException: Too few tlab objects allocated: expected 50 >= 80
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertGreaterThanOrEqual(Asserts.java:288)
        at jdk.jfr.event.allocation.TestObjectAllocationInNewTLABEvent.main(TestObjectAllocationInNewTLABEvent.java:78)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)

        I think the test makes questionably assumptions about the size of byte array allocated, which fail on 32-bit platforms.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: