Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
rust-lang
/
rust
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
15.4k
Star
116k
Code
Issues
5k+
Pull requests
1.3k
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Switch the destructors implementation for thread locals on Windows to use FLS
- #148799
#148799
Merged
rust-bors[bot]
merged 9 commits into
rust-lang:main
rust-lang/rust:main
from
ohadravid:windows-thread-local-dtors-using-fls
ohadravid/rust:windows-thread-local-dtors-using-fls
Copy head branch name to clipboard
Jun 3, 2026
Conversation
Commits
9
(9)
Checks
Files changed
Merged
Switch the destructors implementation for thread locals on Windows to use FLS
#148799
rust-bors[bot]
merged 9 commits into
rust-lang:main
rust-lang/rust:main
from
ohadravid:windows-thread-local-dtors-using-fls
ohadravid/rust:windows-thread-local-dtors-using-fls
Copy head branch name to clipboard
Commits
Commits on May 26, 2026
Added Windows bindings for FLS-related functions
ohadravid
committed
10e1030
View commit details
Copy full SHA for 10e1030
Browse repository at this point
Replace `thread_local::guard` on Windows with an FLS-based impl
ohadravid
committed
b5958a9
View commit details
Copy full SHA for b5958a9
Browse repository at this point
Add support for the `Fls{Alloc,GetValue,SetValue}` functions in miri
ohadravid
committed
4c34d61
View commit details
Copy full SHA for 4c34d61
Browse repository at this point
Update Miri's FLS impl to clear the key's value after running it's destructor
ohadravid
committed
490e4ec
View commit details
Copy full SHA for 490e4ec
Browse repository at this point
Free FLS key used by `thread_local::guard` during DLL unload to avoid access violation
ohadravid
committed
1142cfb
View commit details
Copy full SHA for 1142cfb
Browse repository at this point
Only track cleanup registration when `target_thread_local`
ohadravid
committed
5581572
View commit details
Copy full SHA for 5581572
Browse repository at this point
Commits on May 27, 2026
Return early in `thread_local::guard` once `atexit` has been called
ohadravid
committed
99f4605
View commit details
Copy full SHA for 99f4605
Browse repository at this point
rtabort on `atexit` registration failure
ohadravid
committed
435bed0
View commit details
Copy full SHA for 435bed0
Browse repository at this point
Commits on Jun 2, 2026
Prevent races between `thread_local::guard` and `atexit` using a dedicated struct
Show description for 336dc57
ohadravid
committed
336dc57
View commit details
Copy full SHA for 336dc57
Browse repository at this point
You can’t perform that action at this time.