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

Ensure heap growth in TestNativeMemoryUsageEvents.java

    XMLWordPrintable

Details

    • jfr
    • 20
    • b27
    • x86_64, aarch64
    • linux, os_x

    Description

      The new test added by JDK-8157023 failed on macOS Aarch64:

      ----------System.out:(24/1867)----------
      [0.002s][info][gc] Using G1
      [0.141s][info][gc] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 8M->2M(18M) 2.106ms
      [0.181s][info][gc] GC(1) Pause Young (Normal) (G1 Evacuation Pause) 8M->4M(18M) 1.742ms
      [0.218s][info][gc] GC(2) Pause Young (Normal) (G1 Evacuation Pause) 10M->6M(18M) 1.507ms
      [0.219s][info][gc] GC(3) Pause Young (Normal) (G1 Evacuation Pause) 10M->11M(18M) 0.836ms
      [0.221s][info][gc] GC(4) Pause Young (Concurrent Start) (G1 Evacuation Pause) 14M->14M(20M) 0.858ms
      [0.221s][info][gc] GC(5) Concurrent Mark Cycle
      [0.222s][info][gc] GC(6) Pause Young (Normal) (G1 Evacuation Pause) 16M->16M(63M) 0.798ms
      [0.227s][info][gc] GC(7) Pause Young (Normal) (G1 Evacuation Pause) 31M->31M(63M) 1.996ms
      [0.228s][info][gc] GC(5) Pause Remark 32M->32M(63M) 1.263ms
      [0.232s][info][gc] GC(8) Pause Young (Normal) (G1 Evacuation Pause) 40M->42M(63M) 1.577ms
      [0.233s][info][gc] GC(5) Pause Cleanup 42M->42M(63M) 0.030ms
      [0.236s][info][gc] GC(9) Pause Young (Prepare Mixed) (G1 Evacuation Pause) 47M->48M(63M) 1.493ms
      [0.237s][info][gc] GC(5) Concurrent Mark Cycle 16.137ms
      [0.238s][info][gc] GC(10) Pause Young (Mixed) (G1 Evacuation Pause) 52M->52M(63M) 0.633ms
      [0.240s][info][gc] GC(11) Pause Young (Concurrent Start) (G1 Evacuation Pause) 56M->56M(89M) 0.716ms
      [0.240s][info][gc] GC(12) Concurrent Mark Cycle
      [0.246s][info][gc] GC(13) Pause Young (Normal) (G1 Evacuation Pause) 65M->66M(89M) 3.184ms
      [0.250s][info][gc] GC(14) Pause Young (Normal) (G1 Evacuation Pause) 71M->72M(89M) 1.044ms
      [0.253s][info][gc] GC(15) Pause Young (Normal) (G1 Evacuation Pause) 76M->76M(89M) 0.864ms
      [0.255s][info][gc] GC(12) Pause Remark 76M->76M(128M) 1.250ms
      [0.261s][info][gc] GC(12) Pause Cleanup 76M->76M(128M) 0.076ms
      [0.262s][info][gc] GC(12) Concurrent Mark Cycle 21.914ms
      [0.363s][info][gc] GC(16) Pause Young (Prepare Mixed) (G1 Evacuation Pause) 79M->78M(128M) 1.571ms
      ----------System.err:(14/1056)----------
      java.lang.RuntimeException: heap should have grown and NMT should show that: expected 18874368 > 18874368
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertGreaterThan(Asserts.java:343)
      at jdk.jfr.event.runtime.TestNativeMemoryUsageEvents.verifyHeapGrowth(TestNativeMemoryUsageEvents.java:138)
      at jdk.jfr.event.runtime.TestNativeMemoryUsageEvents.main(TestNativeMemoryUsageEvents.java:160)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      Attachments

        Issue Links

          Activity

            People

              sjohanss Stefan Johansson
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: