RFR: 8282721: HotSpot Style Guide should allow considered use of C++ thread_local [v2]

David Holmes dholmes at openjdk.java.net
Tue Mar 8 05:19:42 UTC 2022


On Mon, 7 Mar 2022 17:21:17 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Feedback from kbarrett and jrose.
>
> doc/hotspot-style.md line 669:
> 
>> 667: problems as for ordinary namespace-scoped variables. So we avoid use of
>> 668: `thread_local` in general, limiting its use to only those cases where dynamic
>> 669: initialization and destruction are essential. See [JDK-8282469](https://bugs.openjdk.java.net/browse/JDK-8282469)
> 
> I'd like a line break between "See" and the bug link, to reduce the line length.

Fixed

-------------

PR: https://git.openjdk.java.net/jdk/pull/7720


More information about the hotspot-dev mailing list