eden-nx2-old/src/core/hle
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Takoroka 9677090712 nx2 services: callbacks no longer outlive their sessions
Under cdb title 1 reported "Free Heap block modified after it was freed"
when it recreated its display session (~4 min in); a run without the
debugger crashed at 113 s. The vi2 vsync timer callback (HostTiming thread)
captured the session and signalled its events; the destructor unscheduled
the timer (which does not wait for a running callback) and closed the
events. The syncpt slot actions (GPU thread) had the same race with
CloseEvent, as did the frame-capture and dump callbacks.

vsync events now live in state shared with the callback and are emptied
under its lock before closing; syncpt actions check a shared "alive" flag
under a mutex the destructor takes; capture/dump callbacks hold no session
pointers.
2026-10-28 17:22:54 -04:00
..
kernel Performance diagnostics and small wins for title 1 2026-10-28 16:44:24 -04:00
service nx2 services: callbacks no longer outlive their sessions 2026-10-28 17:22:54 -04:00
api_version.h [hle] Firmware 23.0.0 (#4390) 2026-09-10 22:28:39 +02:00
ipc.h [hle] inline HLE cmif request to not allocate on heap stuff (#3605) 2026-05-15 22:07:03 +02:00
result.h [cmake] Fix some macOS compilation errors (#4350) 2026-09-05 23:43:46 +02:00