Import thread_local
/ _Thread_local
marked APIs as nonisolated(unsafe)
#75820
Labels
clang importer
Area → compiler: The clang importer
concurrency
Feature: umbrella label for concurrency language features
feature
A feature request or implementation
Description
Unlike regular global variables, global variables in TLS can be accessed from any actor context without data-race in theory. For example, wasi-libc's errno is defined as a global TLS variable (not a macro unlike other libcs)
ClangImporer should import those global variables with
nonisolated(unsafe)
attributes to avoid redundant shimsAdditional information
No response
The text was updated successfully, but these errors were encountered: