diff options
| author | Roberto0953 <Roberto0953@users.noreply.github.com> | 2026-11-23 17:48:36 +0100 |
|---|---|---|
| committer | Roberto0953 <Roberto0953@users.noreply.github.com> | 2026-11-23 17:48:54 +0100 |
| commit | b2902830d48ee44530f8f3be113ec477b49da1ff (patch) | |
| tree | 088c0128c3be2a5631461132f3e75359e8dae60a /runtime/src/vulkan_aftermath.cpp | |
| parent | 5a8dc9af6673e43113d0d53012b632531b8c2653 (diff) | |
loader: load() gives already-running threads the executable's slot-0 block too
After #3671 a thread that was already running when load() ran gets each module's TLS block from load()
itself, and install_tls_for_thread is a no-op there. install_on_existing_threads stopped at
kMaxMappedTlsModules, so the executable in kMainImageSlot (#4313) was skipped: such a thread, a thread-pool
worker for instance, kept slot 0 as it was and /GA code on it read the wrong block. The check now covers
kTlsSlotCount. loader_tls_index0's early thread checks the new contract; without the change it fails
(reads no 42 in slot 0 before any install call).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions