fix(runtime): restore function names for migrated async guards#147
Merged
rocketman-code merged 1 commit intomainfrom Feb 27, 2026
Merged
fix(runtime): restore function names for migrated async guards#147rocketman-code merged 1 commit intomainfrom
rocketman-code merged 1 commit intomainfrom
Conversation
rocketman-code
added a commit
that referenced
this pull request
Feb 27, 2026
- Document cookie truncation to 32 bits in pack_cookie_name_depth - Add runtime guard for u16 overflow in intern_name_slow - Add boundary values to pack_unpack_round_trip test
Add a global interned string table mapping u16 IDs to function names, with a thread-local cache on the hot path. Restructure Guard's packed field from [cookie:48][depth:16] to [cookie:32][name_id:16][depth:16], keeping Guard at exactly 16 bytes. On migrated drop, look up the real function name from the intern table instead of using "<migrated>". Closes #116
f81cdc9 to
3ae5e48
Compare
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.
Summary
Closes #116
Test plan
migrated_guard_preserves_function_nameasserts migrated records have real function namesmigrated_guards_distinguish_multiple_functionsasserts multiple migrating functions stay distinctmigrated_invocation_has_real_nameasserts InvocationRecord carries real name