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

[AIX] TestAlwaysPreTouchStacks.java fails due to java.lang.RuntimeException: Did not find expected NMT output

    XMLWordPrintable

Details

    • b08
    • ppc
    • aix

    Backports

      Description

        On AIX, track_as_vm() returns false [https://github.com/openjdk/jdk/blob/master/src/hotspot/share/services/memReporter.cpp#L225] which causes it to move to else part and prints “Stack: “, but the test is expecting the pattern : ".*stack: reserved=(\\d+), committed=(\\d+).*”.

        stdout: [Alive: 2
        Alive: 7
        Alive: 4
        Alive: 1
        Alive: 0
        Alive: 15
        Alive: 11
        Alive: 14
        Alive: 12
        Alive: 9
        Alive: 13
        Alive: 8
        Alive: 10
        Alive: 5
        Alive: 6
        Alive: 3

        Native Memory Tracking:

        Total: reserved=219152338, committed=219152338
               malloc: 219152338 #54209
               mmap: reserved=0, committed=0

        - Class (reserved=124465, committed=124465)
                                    (classes #769)
                                    ( instance classes #662, array classes #107)
                                    (malloc=124465 #1877) (peak=124657 #1867)
                                    ( Metadata: )
                                    ( reserved=67108864, committed=5767168)
                                    ( used=5649248)
                                    ( waste=117920 =2.04%)
                                    ( Class space:)
                                    ( reserved=1073741824, committed=524288)
                                    ( used=476976)
                                    ( waste=47312 =9.02%)
         
        - Thread (reserved=181151776, committed=181151776)
                                    (thread #33)
                                    (Stack: 181037448)
                                    (malloc=76048 #221) (peak=84656 #226)
                                    (arena=38280 #67) (peak=272664 #26)
         
        - Code (reserved=761752, committed=761752)
                                    (malloc=761752 #22964) (peak=761872 #22970)
                                    (arena=0 #0) (peak=984 #1)
         
        - GC (reserved=27922954, committed=27922954)
                                    (malloc=27922954 #658) (peak=27923042 #656)
         
        - GCCardSet (reserved=29928, committed=29928)
                                    (malloc=29928 #387) (at peak)
         
        - Compiler (reserved=209820, committed=209820)
                                    (malloc=6564 #56) (peak=6700 #57)
                                    (arena=203256 #7) (peak=4603120 #15)
         
        - Internal (reserved=703467, committed=703467)
                                    (malloc=703467 #20791) (peak=705041 #20801)
         
        - Symbol (reserved=2853042, committed=2853042)
                                    (malloc=978914 #3895) (at peak)
                                    (arena=1874128 #1) (at peak)
         
        - Native Memory Tracking (reserved=870288, committed=870288)
                                    (malloc=2944 #29) (peak=3024 #30)
                                    (tracking overhead=867344)
         
        - Arena Chunk (reserved=4141992, committed=4141992)
                                    (malloc=4141992 #257) (peak=6517056 #258)
         
        - Tracing (reserved=313, committed=313)
                                    (malloc=313 #9) (at peak)
         
        - Statistics (reserved=128, committed=128)
                                    (malloc=128 #2) (at peak)
         
        - Arguments (reserved=77, committed=77)
                                    (malloc=77 #4) (at peak)
         
        - Module (reserved=200536, committed=200536)
                                    (malloc=200536 #2055) (at peak)
         
        - Synchronization (reserved=150912, committed=150912)
                                    (malloc=150912 #943) (at peak)
         
        - Serviceability (reserved=17080, committed=17080)
                                    (malloc=17080 #9) (peak=17416 #13)
         
        - Metaspace (reserved=12864, committed=12864)
                                    (malloc=12864 #10) (at peak)
         
        - String Deduplication (reserved=608, committed=608)
                                    (malloc=608 #8) (at peak)
         
        - Object Monitors (reserved=336, committed=336)
                                    (malloc=336 #1) (at peak)
         
        ];
         stderr: []
         exitValue = 0

        java.lang.RuntimeException: Did not find expected NMT output
                at TestAlwaysPreTouchStacks.main(TestAlwaysPreTouchStacks.java:149)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
                at java.base/java.lang.Thread.run(Thread.java:1570)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        Attachments

          Issue Links

            Activity

              People

                varadam Varada M
                varadam Varada M
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: