2020-12-16T04:46:54.9609570Z Test case details: 2020-12-16T04:46:54.9609926Z Young gen size : 16M 2020-12-16T04:46:54.9610300Z Predefined PLAB size : 4096 2020-12-16T04:46:54.9610736Z Parallel GC buffer waste pct : 20 2020-12-16T04:46:54.9611117Z Chunk size : 3500 2020-12-16T04:46:54.9611475Z Parallel GC threads : 3 2020-12-16T04:46:54.9611897Z Objects are created : reachable 2020-12-16T04:46:54.9612318Z PLAB size is fixed: yes 2020-12-16T04:46:54.9612702Z Test expectations: 2020-12-16T04:46:54.9613131Z PLAB allocation : expected 2020-12-16T04:46:54.9613655Z Direct allocation : unexpected 2020-12-16T04:46:54.9621115Z Command line: [/home/runner/jdk-linux-x86-debug/jdk-17-internal+0_linux-x86_bin-debug/jdk-17/fastdebug/bin/java -cp /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/g1/plab/TestPLABPromotion.d:/home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/g1/plab:/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/test/lib:/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes:/home/runner/jtreg/lib/javatest.jar:/home/runner/jtreg/lib/jtreg.jar:/home/runner/jtreg/lib/junit.jar:/home/runner/jtreg/lib/testng.jar:/home/runner/jtreg/lib/jcommander.jar -XX:MaxRAMPercentage=25 -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/tmp -XX:-CreateCoredumpOnCrash -XX:MaxRAMPercentage=25 -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/tmp -XX:-CreateCoredumpOnCrash -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xlog:gc=debug,gc+plab=debug,gc+heap=debug -XX:+UseG1GC -XX:G1HeapRegionSize=1m -XX:OldSize=64m -XX:-UseAdaptiveSizePolicy -XX:MaxTenuringThreshold=1 -XX:-UseTLAB -XX:SurvivorRatio=1 -XX:ParallelGCThreads=3 -XX:ParallelGCBufferWastePct=20 -XX:OldPLABSize=4096 -XX:YoungPLABSize=4096 -XX:-ResizePLAB -Dchunk.size=3500 -Dreachable=true -XX:NewSize=16m -XX:MaxNewSize=16m -Dmem.to.fill=8388608 gc.g1.plab.lib.AppPLABPromotion ] 2020-12-16T04:46:54.9627321Z [2020-12-16T04:46:54.523851123Z] Gathering output for process 20189 2020-12-16T04:46:54.9628136Z [2020-12-16T04:46:54.781995063Z] Waiting for completion for process 20189 2020-12-16T04:46:54.9628910Z [2020-12-16T04:46:54.782117264Z] Waiting for completion finished for process 20189 2020-12-16T04:46:54.9629771Z Output and diagnostic info for process 20189 was saved into 'pid-20189-output.log' 2020-12-16T04:46:54.9630589Z [2020-12-16T04:46:54.782487569Z] Waiting for completion for process 20189 2020-12-16T04:46:54.9631349Z [2020-12-16T04:46:54.782529169Z] Waiting for completion finished for process 20189 2020-12-16T04:46:54.9632023Z Survivor PLAB allocated: 0 Direct allocated: 8390168 Mem consumed: 8388608 2020-12-16T04:46:54.9632699Z Old PLAB allocated: 0 Direct allocated: 8390168 Mem consumed: 8388608 2020-12-16T04:46:54.9633526Z [0.007s][debug][gc,heap] Minimum heap 83886080 Initial heap 115343360 Maximum heap 1323302912 2020-12-16T04:46:54.9634022Z [0.010s][info ][gc ] Using G1 2020-12-16T04:46:54.9634466Z [0.011s][debug][gc ] ConcGCThreads: 1 offset 5 2020-12-16T04:46:54.9634981Z [0.011s][debug][gc ] ParallelGCThreads: 3 2020-12-16T04:46:54.9635553Z [0.011s][debug][gc ] Initialize mark stack with 32 chunks, maximum 4096 2020-12-16T04:46:54.9636143Z [0.172s][debug][gc,heap] GC(0) Heap before GC invocations=0 (full 0): 2020-12-16T04:46:54.9637010Z [0.172s][debug][gc,heap] GC(0) garbage-first heap total 112640K, used 0K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9637666Z [0.172s][debug][gc,heap] GC(0) region size 1024K, 1 young (1024K), 0 survivors (0K) 2020-12-16T04:46:54.9638293Z [0.172s][debug][gc,heap] GC(0) Metaspace used 3308K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9638953Z [0.209s][debug][gc,heap] GC(0) Uncommittable regions after shrink: 30 2020-12-16T04:46:54.9639641Z [0.209s][info ][gc,heap] GC(0) Eden regions: 1->0(16) 2020-12-16T04:46:54.9640275Z [0.209s][info ][gc,heap] GC(0) Survivor regions: 0->0(0) 2020-12-16T04:46:54.9640872Z [0.209s][info ][gc,heap] GC(0) Old regions: 0->1 2020-12-16T04:46:54.9641483Z [0.209s][info ][gc,heap] GC(0) Archive regions: 0->0 2020-12-16T04:46:54.9642110Z [0.209s][info ][gc,heap] GC(0) Humongous regions: 0->0 2020-12-16T04:46:54.9642660Z [0.209s][debug][gc,heap] GC(0) Heap after GC invocations=1 (full 1): 2020-12-16T04:46:54.9643496Z [0.209s][debug][gc,heap] GC(0) garbage-first heap total 81920K, used 518K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9644210Z [0.209s][debug][gc,heap] GC(0) region size 1024K, 0 young (0K), 0 survivors (0K) 2020-12-16T04:46:54.9644849Z [0.209s][debug][gc,heap] GC(0) Metaspace used 3308K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9645679Z [0.209s][info ][gc ] GC(0) Pause Full (WhiteBox Initiated Full GC) 0M->0M(80M) 37.342ms 2020-12-16T04:46:54.9646330Z [0.210s][debug][gc,heap] Concurrent Uncommit Summary: 30720K, 30 regions, 0.376ms 2020-12-16T04:46:54.9646946Z [0.216s][debug][gc,heap] GC(1) Heap before GC invocations=1 (full 1): 2020-12-16T04:46:54.9647795Z [0.216s][debug][gc,heap] GC(1) garbage-first heap total 81920K, used 8710K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9648443Z [0.216s][debug][gc,heap] GC(1) region size 1024K, 9 young (9216K), 0 survivors (0K) 2020-12-16T04:46:54.9649077Z [0.216s][debug][gc,heap] GC(1) Metaspace used 3309K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9649840Z [0.220s][debug][gc,plab] GC(1) Young PLAB allocation: allocated: 0B, wasted: 0B, unused: 0B, used: 0B, undo waste: 0B, 2020-12-16T04:46:54.9650787Z [0.220s][debug][gc,plab] GC(1) Young other allocation: region end waste: 16000B, regions filled: 9, direct allocated: 8390168B, failure used: 0B, failure wasted: 0B 2020-12-16T04:46:54.9651727Z [0.220s][debug][gc,plab] GC(1) Old PLAB allocation: allocated: 0B, wasted: 0B, unused: 0B, used: 0B, undo waste: 0B, 2020-12-16T04:46:54.9652644Z [0.220s][debug][gc,plab] GC(1) Old other allocation: region end waste: 0B, regions filled: 0, direct allocated: 0B, failure used: 0B, failure wasted: 0B 2020-12-16T04:46:54.9653600Z [0.220s][info ][gc,heap] GC(1) Eden regions: 9->0(7) 2020-12-16T04:46:54.9654243Z [0.220s][info ][gc,heap] GC(1) Survivor regions: 0->9(16) 2020-12-16T04:46:54.9654847Z [0.220s][info ][gc,heap] GC(1) Old regions: 1->1 2020-12-16T04:46:54.9655455Z [0.220s][info ][gc,heap] GC(1) Archive regions: 0->0 2020-12-16T04:46:54.9656080Z [0.220s][info ][gc,heap] GC(1) Humongous regions: 0->0 2020-12-16T04:46:54.9656633Z [0.220s][debug][gc,heap] GC(1) Heap after GC invocations=2 (full 1): 2020-12-16T04:46:54.9657464Z [0.220s][debug][gc,heap] GC(1) garbage-first heap total 81920K, used 8728K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9658334Z [0.220s][debug][gc,heap] GC(1) region size 1024K, 9 young (9216K), 9 survivors (9216K) 2020-12-16T04:46:54.9658966Z [0.220s][debug][gc,heap] GC(1) Metaspace used 3309K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9659851Z [0.221s][info ][gc ] GC(1) Pause Young (Normal) (WhiteBox Initiated Young GC) 8M->8M(80M) 4.823ms 2020-12-16T04:46:54.9660510Z [0.221s][debug][gc,heap] GC(2) Heap before GC invocations=2 (full 1): 2020-12-16T04:46:54.9661344Z [0.221s][debug][gc,heap] GC(2) garbage-first heap total 81920K, used 8728K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9661998Z [0.221s][debug][gc,heap] GC(2) region size 1024K, 9 young (9216K), 9 survivors (9216K) 2020-12-16T04:46:54.9662636Z [0.221s][debug][gc,heap] GC(2) Metaspace used 3309K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9663407Z [0.229s][debug][gc,plab] GC(2) Young PLAB allocation: allocated: 0B, wasted: 0B, unused: 0B, used: 0B, undo waste: 0B, 2020-12-16T04:46:54.9664344Z [0.229s][debug][gc,plab] GC(2) Young other allocation: region end waste: 0B, regions filled: 0, direct allocated: 0B, failure used: 0B, failure wasted: 0B 2020-12-16T04:46:54.9665279Z [0.229s][debug][gc,plab] GC(2) Old PLAB allocation: allocated: 0B, wasted: 0B, unused: 0B, used: 0B, undo waste: 0B, 2020-12-16T04:46:54.9666252Z [0.229s][debug][gc,plab] GC(2) Old other allocation: region end waste: 16000B, regions filled: 9, direct allocated: 8390168B, failure used: 0B, failure wasted: 0B 2020-12-16T04:46:54.9667157Z [0.229s][info ][gc,heap] GC(2) Eden regions: 0->0(16) 2020-12-16T04:46:54.9667791Z [0.229s][info ][gc,heap] GC(2) Survivor regions: 9->0(16) 2020-12-16T04:46:54.9668393Z [0.229s][info ][gc,heap] GC(2) Old regions: 1->10 2020-12-16T04:46:54.9669098Z [0.229s][info ][gc,heap] GC(2) Archive regions: 0->0 2020-12-16T04:46:54.9669722Z [0.229s][info ][gc,heap] GC(2) Humongous regions: 0->0 2020-12-16T04:46:54.9670271Z [0.229s][debug][gc,heap] GC(2) Heap after GC invocations=3 (full 1): 2020-12-16T04:46:54.9671101Z [0.229s][debug][gc,heap] GC(2) garbage-first heap total 81920K, used 8728K [0x97a00000, 0xe6800000) 2020-12-16T04:46:54.9671753Z [0.229s][debug][gc,heap] GC(2) region size 1024K, 0 young (0K), 0 survivors (0K) 2020-12-16T04:46:54.9672391Z [0.229s][debug][gc,heap] GC(2) Metaspace used 3309K, committed 3392K, reserved 8192K 2020-12-16T04:46:54.9673252Z [0.229s][info ][gc ] GC(2) Pause Young (Normal) (WhiteBox Initiated Young GC) 8M->8M(80M) 8.229ms 2020-12-16T04:46:54.9673655Z 2020-12-16T04:46:54.9673939Z STDERR: 2020-12-16T04:46:54.9674606Z java.lang.RuntimeException: Expect that Survivor PLAB allocation are similar to all mem consumed 2020-12-16T04:46:54.9676062Z at gc.g1.plab.TestPLABPromotion.checkLiveObjectsPromotion(TestPLABPromotion.java:188) 2020-12-16T04:46:54.9677649Z at gc.g1.plab.TestPLABPromotion.checkResults(TestPLABPromotion.java:156) 2020-12-16T04:46:54.9678864Z at gc.g1.plab.TestPLABPromotion.main(TestPLABPromotion.java:122) 2020-12-16T04:46:54.9680264Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2020-12-16T04:46:54.9682152Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) 2020-12-16T04:46:54.9684364Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2020-12-16T04:46:54.9686017Z at java.base/java.lang.reflect.Method.invoke(Method.java:567) 2020-12-16T04:46:54.9687452Z at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298) 2020-12-16T04:46:54.9688668Z at java.base/java.lang.Thread.run(Thread.java:831)