dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 497 forks source link

【anolis兼容性】默认最大堆未抛出预期的OOM导致java/beans/Introspector/7064279/Test7064279.java失败 #468

Open sendaoYan opened 1 year ago

sendaoYan commented 1 year ago

Steps to Reproduce Steps to reproduce the behavior:

jtreg jdk/test/java/beans/Introspector/7064279/Test7064279.java
STDOUT:
1024
2048
4096
8192
16384
32768
65536
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
536870912
1073741824
STDERR:
java.lang.NegativeArraySizeException
        at Test7064279.main(Test7064279.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(Thread.java:750)

Expected behavior 用例抛出并捕获OOM异常

JDK version

openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition 8.14.15) (build 1.8.0_362-b01)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition 8.14.15) (build 25.362-b01, mixed mode)

Execution environment image