-
-
Notifications
You must be signed in to change notification settings - Fork 15k
add language-level support for thread-local data #10310
Copy link
Copy link
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Description
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Type
Fields
Give feedbackNo fields configured for issues without a type.
LLVM has a
thread_localspecifier, for fast thread-local data. This could be exposed with a#[thread_local]attribute.It will still be necessary for
#[thread_local] static mutto be unsafe, because a borrow would have a'staticlifetime and freezing wouldn't really be possible...