dragonwell-project / dragonwell8

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

[bug] Windows 平台不支持 ElasticHeap,但没有对应提醒 #454

Open ZZZank opened 1 year ago

ZZZank commented 1 year ago

Description 使用 -XX:+G1ElasticHeap 参数会导致JVM在启动瞬间崩溃,错误报告里提到Problematic frame: # V [jvm.dll+0x1eb408] 不加上ElasticHeap的相关参数时启动正常

Steps to Reproduce

  1. 任意找一个Java程序
  2. 在启动参数中加入 -Xms6g -Xmx6g -XX:+G1ElasticHeap -XX:+ElasticHeapPeriodicUncommit -XX:+UseG1GC
  3. 启动,立即崩溃,输出hs_err_pid3560.log hs_err_pid3560.log

Expected behavior NO CRASH

JDK version openjdk version "1.8.0_352" OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition 8.13.14) (build 1.8.0_352-b01) OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition 8.13.14) (build 25.352-b01, mixed mode)

Execution environment

lusou-zhangquan commented 1 year ago

G1ElasticHeap这个特性目前只支持linux平台,windows平台暂不支持,后续我们会通过调整选项配置避免在不支持的平台上被enable并出现异常行为。