Repository navigation
fix(shader): keep the per-thread empty image tables in HostThreadLocal - #19893
Merged
oneandonlydean merged 1 commit intoNov 14, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
boykopovar#18827 made the empty table result a function-local thread_local. On Windows its destructor runs after emulated TLS freed the object, which prx_thread_local_destructors and test_thread_local_destructors reject.
Contributor
|
Windows check of head all 22 selected tests (
This PR adds no test, so these are the existing AI-assisted: yes. |
13 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Since #18827,
prx_thread_local_destructorsandtest_thread_local_destructorsfail on Windows:ResolveImageTablesSharedkeeps the empty table result in a function-localthread_local, whose destructor runs after emulated TLS freed the object. This keeps the same per-thread value inHostThreadLocal, as the rest of the file already does, so the empty result stays per thread and #18827's reuse is unchanged. Last Windows main without the failure: 865f0fe.Tested
The full Windows suite on this PR must show
prx_thread_local_destructorsandtest_thread_local_destructorspassing.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)