Skip to content

Comments

Add process heap locking to DetourTransaction#128

Merged
wopss merged 1 commit intomasterfrom
bugfix/thread-deadlock
Feb 19, 2026
Merged

Add process heap locking to DetourTransaction#128
wopss merged 1 commit intomasterfrom
bugfix/thread-deadlock

Conversation

@wopss
Copy link
Owner

@wopss wopss commented Jan 30, 2026

I realized based on cyb3rpsych0s1s/audioware#81, that Detours use new/delete operators while the threads are suspended. which cause deadlocks when a thread has the lock on the process' heap.

This PR gets the heap lock when the transactions starts.

@wopss wopss requested a review from psiberx January 30, 2026 16:07
@wopss wopss merged commit 1fb3ff4 into master Feb 19, 2026
6 checks passed
@wopss wopss deleted the bugfix/thread-deadlock branch February 19, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants