Skip to content

Commit

Permalink
8323964: runtime/Thread/ThreadCountLimit.java fails intermittently on…
Browse files Browse the repository at this point in the history
… AIX

Backport-of: 3696765b7d1faec4bd23761a7a1b627d8903598d
  • Loading branch information
MBaesken committed Feb 13, 2024
1 parent 4ab7711 commit bc606a0
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
@@ -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
@@ -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

1 comment on commit bc606a0

@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.