Skip to content

Commit

Permalink
8314139: TEST_BUG: runtime/os/THPsInThreadStackPreventionTest.java co…
Browse files Browse the repository at this point in the history
…uld fail on machine with large number of cores

Backport-of: 733250288325bc663afc0376342d4c5a7a471cbd
  • Loading branch information
tstuefe committed Aug 29, 2023
1 parent 77b5fa2 commit af9d11e
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -165,6 +165,9 @@ public static void main(String[] args) throws Exception {
"-Xmx" + heapSizeMB + "m", "-Xms" + heapSizeMB + "m", "-XX:+AlwaysPreTouch", // stabilize RSS
"-Xss" + threadStackSizeMB + "m",
"-XX:-CreateCoredumpOnCrash",
// Limits the number of JVM-internal threads, which depends on the available cores of the
// machine. RSS+Swap could exceed acceptableRSSLimitMB when JVM creates many internal threads.
"-XX:ActiveProcessorCount=2",
// This will delay the child threads before they create guard pages, thereby greatly increasing the
// chance of large VMA formation + hugepage coalescation; see JDK-8312182
"-XX:+DelayThreadStartALot"
Expand Down

1 comment on commit af9d11e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.