Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] dragonwell11 standard版本在特定环境上UnsafeIntrinsicsTest.java用例报OOM #267

Closed
sendaoYan opened this issue Aug 25, 2022 · 1 comment
Assignees

Comments

@sendaoYan
Copy link
Collaborator

Description
dragonwell11 standard版本在特定环境上UnsafeIntrinsicsTest.java用例报OOM。extended版本运行正常

standard版本:

image

extended版本:

image

UnsafeIntrinsicsTest.java.txt

Steps to Reproduce

javac --add-exports java.base/jdk.internal.misc=ALL-UNNAMED UnsafeIntrinsicsTest.java && java -Xmx256M -XX:+UnlockExperimentalVMOptions -XX:+UseZGC --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED UnsafeIntrinsicsTest 

Execution environment

ESC实例IP:47.98.39.147

image

sendaoYan added a commit that referenced this issue Aug 25, 2022
Summary: disable wisp testcase compiler/gcbarriers/UnsafeIntrinsicsTest.java#z by problemlist, which run OOM on specific machine

Test Plan: CI pipeline

Reviewed-by: lei.yul, lvfei.lv

Issue: #267
@y1yang0 y1yang0 assigned y1yang0 and unassigned y1yang0 Sep 1, 2022
@y1yang0
Copy link
Collaborator

y1yang0 commented Sep 1, 2022

ZGC heuristically reserves too many spaces(68% of the heap) for object relocation. There are insufficient spaces to accommodate objects. Object allocation rate is slightly faster than reclamation, which finally leads to OOME. The calculation of reserve space is based on num of concurrent GC threads and parallel GC threads(ZHeuristics::max_reserve), we can use fewer parallel GC threads to reserve more spaces for object allocation and avoid further OOME(e.g. -XX:ParallelGCThreads=5)

sendaoYan added a commit that referenced this issue Sep 15, 2022
Summary: fix test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java run OOM on same machine

Test Plan: CI pipeline

Reviewed-by: lei.yul, qingfeng.yy

Issue: #267
@sendaoYan sendaoYan self-assigned this Nov 22, 2022
sendaoYan added a commit to sendaoYan/dragonwell11-ysd that referenced this issue Nov 22, 2022
…rt commit 9e37ea4

Summary: fix test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java run OOM on same machine, and revert commit 9e37ea4

Test Plan: CI pipeline

Reviewed-by: kuaiwei.kw, lvfei.lv

Issue: dragonwell-project#267
sendaoYan added a commit that referenced this issue Nov 22, 2022
…rt commit 9e37ea4

Summary: fix test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java run OOM on same machine, and revert commit 9e37ea4

Test Plan: CI pipeline

Reviewed-by: kuaiwei.kw, lvfei.lv

Issue: #267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants