Changes between Initial Version and Version 12 of Ticket #17896


Ignore:
Timestamp:
Aug 30, 2022, 9:12:41 PM (21 months ago)
Author:
waddlesplash
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17896

    • Property Cc korli added
    • Property Summary static (hidden) thread_local values do not actually get unique pointersstatic (hidden) thread_local values do not work in some cases
  • Ticket #17896 – Description

    initial v12  
    1 gnutls makes use of this, and so it had to be disabled to fix crashes: https://github.com/haikuports/haikuports/commit/cda76a62712b91647892ba01f1a5d0dcb38cadc5
    2 
    3 Using the test program from here, the problem can clearly be seen: https://riptutorial.com/c/example/16383/-thread-local
    4 
    5 {{{
    6 From thread:[2], Address of i (thread local): 0x2f5f7cc990
    7 From thread:[3], Address of i (thread local): 0x2f5f7cc990
    8 From thread:[5], Address of i (thread local): 0x2f5f7cc990
    9 From thread:[4], Address of i (thread local): 0x2f5f7cc990
    10 From thread:[1], Address of i (thread local): 0x2f5f7cc8f0
    11 }}}
     1gnutls makes use of this, and it had to be disabled to fix crashes: https://github.com/haikuports/haikuports/commit/cda76a62712b91647892ba01f1a5d0dcb38cadc5