mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #4070] [MERGED] threads: initialize tls on thread creation (take 2) #3919
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3919
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/4070
Author: @roamic
Created: 2/23/2026
Status: ✅ Merged
Merged: 2/24/2026
Merged by: @roamic
Base:
main← Head:init-tls-on-create📝 Commits (3)
0f84f6dthreads: initialize tls on thread creation (take 2)8b7a2d2clear main thread stack before execution1f09559don't clear user stack📊 Changes
17 files changed (+95 additions, -69 deletions)
View changed files
📝
src/core/libraries/avplayer/avplayer_impl.cpp(+8 -8)📝
src/core/libraries/avplayer/avplayer_state.cpp(+1 -1)📝
src/core/libraries/ime/ime.cpp(+4 -4)📝
src/core/libraries/ime/ime_dialog_ui.cpp(+2 -3)📝
src/core/libraries/kernel/threads.cpp(+11 -0)📝
src/core/libraries/kernel/threads.h(+3 -0)📝
src/core/libraries/kernel/threads/exception.cpp(+1 -1)📝
src/core/libraries/kernel/threads/pthread.cpp(+9 -2)📝
src/core/libraries/kernel/threads/pthread_spec.cpp(+1 -1)📝
src/core/libraries/network/net_ctl_obj.cpp(+2 -2)📝
src/core/libraries/ngs2/ngs2.cpp(+2 -2)📝
src/core/libraries/usbd/emulated/dimensions.cpp(+41 -14)📝
src/core/libraries/usbd/emulated/dimensions.h(+2 -0)📝
src/core/linker.cpp(+5 -5)📝
src/core/module.cpp(+1 -1)📝
src/core/tls.cpp(+1 -1)📝
src/core/tls.h(+1 -24)📄 Description
Needs testing with the games that were affected by the first attempt:
And generally any other game
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.