Skip to content

Commit

Permalink
Backport 3696765b7d1faec4bd23761a7a1b627d8903598d
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Feb 7, 2024
1 parent 4d62dfa commit 38995b9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
15 changes: 8 additions & 7 deletions src/hotspot/os/aix/globals_aix.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2018 SAP SE. All rights reserved.
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -49,11 +49,12 @@
"Allow VM to run with EXTSHM=ON.") \
\
/* Maximum expected size of the data segment. That correlates with the */ \
/* to the maximum C Heap consumption we expect. */ \
/* We need to know this because we need to leave "breathing space" for the */ \
/* data segment when placing the java heap. If that space is too small, we */ \
/* reduce our chance of getting a low heap address (needed for compressed */ \
/* Oops). */ \
/* maximum C Heap consumption we expect. */ \
/* We need to leave "breathing space" for the data segment when */ \
/* placing the java heap. If the MaxExpectedDataSegmentSize setting */ \
/* is too small, we might run into resource issues creating many native */ \
/* threads, if it is too large, we reduce our chance of getting a low heap */ \
/* address (needed for compressed Oops). */ \
product(uintx, MaxExpectedDataSegmentSize, 8*G, \
"Maximum expected Data Segment Size.") \
\
Expand Down
11 changes: 10 additions & 1 deletion test/hotspot/jtreg/runtime/Thread/ThreadCountLimit.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -24,10 +24,19 @@
/**
* @test
* @summary Stress test that reaches the process limit for thread count, or time limit.
* @requires os.family != "aix"
* @key stress
* @run main/othervm -Xmx1g ThreadCountLimit
*/

/**
* @test
* @summary Stress test that reaches the process limit for thread count, or time limit.
* @requires os.family == "aix"
* @key stress
* @run main/othervm -Xmx1g -XX:MaxExpectedDataSegmentSize=16g ThreadCountLimit
*/

import java.util.concurrent.CountDownLatch;
import java.util.ArrayList;

Expand Down

0 comments on commit 38995b9

Please sign in to comment.