RFR: 8359827: Test runtime/Thread/ThreadCountLimit.java should run exclusively [v3]
David Holmes
dholmes at openjdk.org
Tue Jul 22 12:18:27 UTC 2025
On Tue, 22 Jul 2025 09:58:53 GMT, SendaoYan <syan at openjdk.org> wrote:
> I think the 'ulimit -u' in sub-shell take effect in the sub-shell only, it's temporary setting, it will not affect the parent shell.
I'm finding some of these statements to be contradictory to the problem being stated. If the ulimit setting only affects the sub-shell then it can't cause other concurrent tests to hit the limit and fail to create threads!
> It seems that the sub-shell with 'ulimit -u 4096' prefix will count all the user processes number. It's just my speculatation. That's why this test not suitable run with other tests simultaneous
If the sub-shell counts all processes/threads belonging to the user and applies the new ulimit then that would make some sense. But again how does that then cause any problem in a different shell?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26401#issuecomment-3102453314
More information about the hotspot-runtime-dev
mailing list