Repository navigation
Trace outstanding startup callbacks and game entry by thread - #6410
Open
kacper-serewis wants to merge 1 commit into
Open
kacper-serewis wants to merge 1 commit into
kacper-serewis wants to merge 1 commit into
Conversation
This was referenced Nov 23, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6378. Claimed in coordination issue #6214.
Opt-in startup JSONL now records the emitting Windows thread ID and pairs entry and return for process TLS callbacks, process-attach DllMain, and the executable entry on the game thread. Existing tls_callback and dllmain records retain their meanings. Thread TLS callbacks continue to run without tracing under the loader lock.
boot_trace reports phases for which it saw an entry and no matching return. An explicit process exit, a fault, or an interrupted capture can all leave such a record. Legacy traces still parse.
Verified on Windows x64, MSVC 19.50, RelWithDebInfo. All 21 tests in tests/test_boot_trace.py and CTests startup_trace, startup_trace_phases and process_cmdline passed. Synthetic fixtures exercised normal return, propagated SEH, externally terminated wait, nested records and concurrent writers. CPU only. No game files, GPU or graphics driver involved.
AI-assisted with OpenAI Codex.