Skip to content

Commit 2829154

Browse files
author
duke
committedAug 11, 2023
Automatic merge of jdk:master into master
2 parents 06d839e + 7332502 commit 2829154

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎test/hotspot/jtreg/runtime/os/THPsInThreadStackPreventionTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ public static void main(String[] args) throws Exception {
165165
"-Xmx" + heapSizeMB + "m", "-Xms" + heapSizeMB + "m", "-XX:+AlwaysPreTouch", // stabilize RSS
166166
"-Xss" + threadStackSizeMB + "m",
167167
"-XX:-CreateCoredumpOnCrash",
168+
// Limits the number of JVM-internal threads, which depends on the available cores of the
169+
// machine. RSS+Swap could exceed acceptableRSSLimitMB when JVM creates many internal threads.
170+
"-XX:ActiveProcessorCount=2",
168171
// This will delay the child threads before they create guard pages, thereby greatly increasing the
169172
// chance of large VMA formation + hugepage coalescation; see JDK-8312182
170173
"-XX:+DelayThreadStartALot"

0 commit comments

Comments
 (0)
Please sign in to comment.