RFR(S) 8239449: [TESTBUG] test/hotspot/jtreg/runtime/TLS/TestTLS.java: skip test if glibc too old for AdjustStackSizeForTLS

David Holmes david.holmes at oracle.com
Wed Feb 19 13:15:23 UTC 2020


Hi Richard,

On 19/02/2020 8:44 pm, Reingruber, Richard wrote:
> Hi,
> 
> please review this small test fix
> 
> Webrev: http://cr.openjdk.java.net/~rrich/webrevs/8239449/webrev.0/
> Bug:    https://bugs.openjdk.java.net/browse/JDK-8239449
> 
> On linux systems with older glibc versions (e.g. 2.11) the option -XX:+AdjustStackSizeForTLS has no effect, because the private function __pthread_get_minstack is not provided, and the test fails. With the fix the test is skipped instead.

How old is glibc 2.11?

Is it not simpler for the test to try to dlsym the function itself to 
see if it exists?

Thanks,
David

> Thanks, Richard.
> 


More information about the hotspot-runtime-dev mailing list