mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1270] runtime: LEONIDA_THREAD_SNAPSHOT names what every thread waits on at given times (OLD-9926) #1301
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1301
Loading…
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/ubiquitarianism/leonida/pull/1270
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9926-thread-snapshot📝 Commits (1)
387fc16runtime: LEONIDA_THREAD_SNAPSHOT names what every thread waits on at given times (A50)📊 Changes
4 files changed (+550 additions, -0 deletions)
View changed files
📝
runtime/CMakeLists.txt(+9 -0)➕
runtime/shims/thread_snapshot.h(+428 -0)📝
runtime/src/main.cpp(+3 -0)➕
runtime/test/thread_snapshot_test.cpp(+110 -0)📄 Description
Claimed in the coordination issue as: OLD-9926 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144475783)
What and why
Carries forward
old-pr/9926(draft #195, original commit authorJRamos1993preserved; indexed in #17), rebased cleanly onto currentmain(6261ca916).Adds
LEONIDA_THREAD_SNAPSHOTdiagnostic thread-wait reporting togta6rt(runtime/shims/thread_snapshot.h, wired inruntime/src/main.cpp):SetThreadDescription/MS_VC_EXCEPTION) and the kernel object each waiting thread is blocked on (auto-reset/manual-reset events, joined threads, worker-factory pools, etc.) with resolved host symbols.runtime/test/thread_snapshot_test.cppand registersthread_snapshotinruntime/CMakeLists.txt.Tested
thread_snapshot_test.exenatively on Windows 11 with MSVC (/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2): all 6 checks PASS, zero compiler warnings.runtime/build/gta6rt.exevia.\scripts\build_runtime.ps1 -jobs 8: succeeded cleanly withthread_snapshot.hincluded inruntime/src/main.cpp.python -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/shims/thread_snapshot.h runtime/src/main.cpp runtime/test/thread_snapshot_test.cpp: exit 0 (no game data).GPUs tested: n/a (CPU/OS runtime diagnostics; built and tested on Windows 11 Pro 64-bit, MSVC VS 18)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — runtime diagnostics)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.