mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 16:25:58 +03:00
[PR #668] [MERGED] Initialize patch stack before thread TLS. #1702
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#1702
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/668
Author: @squidbus
Created: 8/30/2024
Status: ✅ Merged
Merged: 8/30/2024
Merged by: @georgemoralis
Base:
main← Head:fix-patch-stack📝 Commits (1)
6e552aaInitialize patch stack before thread TLS.📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/core/libraries/kernel/thread_management.cpp(+1 -1)📝
src/core/linker.cpp(+1 -1)📄 Description
We need to initialize the patch stack first as there may be a custom heap API configured that uses patched instructions, which would crash when trying to allocate TLS memory.
Fixes https://github.com/shadps4-emu/shadPS4/issues/667. I tested one of the affected games and it is now working again.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.