Skip to content

Ensure TLS accesses don't call the global allocator through panic (part 2) - #160976

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
maxdexh:fix-thread-local-global-alloc-reenter-2
Aug 13, 2026
Merged

Ensure TLS accesses don't call the global allocator through panic (part 2)#160976
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
maxdexh:fix-thread-local-global-alloc-reenter-2

Conversation

@maxdexh

@maxdexh maxdexh commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

View all comments

In #160934, I missed some calls that are reachable from LocalKey::with on platforms that use the racy LazyKey implementation.

How it didn't occur to me that the other functions (besides get and set) are reachable is beyond me ^^
I guess this is what I get for going through call graphs of disabled code by hand.

Yet another argument for function coloring.

r? nia-e

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

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants