RFR: 8225035: Thread stack size issue caused by large TLS size

Jiangli Zhou jianglizhou at google.com
Mon Jun 10 22:29:45 UTC 2019


Hi David and Florian,

This the a follow up of the discussion regarding the TLS (Thread Local
Storage) issue:
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-May/034459.html.
The following is an updated patch with your suggestions incorporated:

1) Use __pthread_get_minstack
2) By default only adjust the thread stack size if the
minstack-to-stacksize ratio is >= 10%
3) Introduce a new command-line option (Linux only),
AdjustWithMinStackAt, which can be used to change the default 10%
ratio for triggering stack size adjustment

CSR: https://bugs.openjdk.java.net/browse/JDK-8225498
webrev: http://cr.openjdk.java.net/~jiangli/8225035/webrev.00/
bug: https://bugs.openjdk.java.net/browse/JDK-8225035

Best regards,

Jiangli


More information about the hotspot-runtime-dev mailing list