Skip to content

Support thread_local data.#169

Closed
marsupial wants to merge 5 commits intoroot-project:masterfrom
marsupial:PR/10
Closed

Support thread_local data.#169
marsupial wants to merge 5 commits intoroot-project:masterfrom
marsupial:PR/10

Conversation

@marsupial
Copy link
Copy Markdown
Contributor

thread_local is part of the standard, so somewhat necessary to be compliant.
Windows uses thread local storage for its implementation of C++ static semantics.

Currently cling will not complain about thread_local, but due to the way it is implemented on OS X and Linux will likely crash from any extensive usage. By using emulated TLS the thread local data will be dynamically generated so that using them will not overwrite the owning process's thread local data stored in a section of the binary.

@Axel-Naumann
Copy link
Copy Markdown
Member

Thanks! Moved to root-project/root#745.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants