Skip to content

Import thread_local / _Thread_local marked APIs as nonisolated(unsafe) #75820

Open
@kateinoigakukun

Description

@kateinoigakukun

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 shims

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang importerArea → compiler: The clang importerconcurrencyFeature: umbrella label for concurrency language featuresfeatureA feature request or implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions