Skip to content

#3093: WITH_TRACE_HM_PROBES=<N> reports a map freed after N lookups with its free's backtrace - #3101

Merged
ehartford merged 1 commit into
i3088from
i3093
Nov 8, 2026
Merged

ehartford merged 1 commit into
i3088from
i3093

Conversation

@ehartford

@ehartford ehartford commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

For #3093 (closed with its measurement). A setting of 2 or more is also a threshold: a map freed after at least that many lookups is reported at its free with the backtrace of the free, which names the owner whose drop freed it. Documented in deep-debugging-tools.md's switch table.

What it found, posted on #3093: the lookup volume is Sema's module-wide tables (61% freed by the compilation's own drop at the end of main, 28% the D89/D93 re-check rounds', 5% the type-candidate index rebuilt nine times), not many short-lived maps. The two leads are #3099 (the re-check rounds) and #3100 (a tombstone-heavy table with 306M lookups).

Stacked on #3098; one battery on this top covers both.

…ith its free's backtrace

#3087's measurement put 90% of the compiler's 2.6 billion map lookups on
40,178 maps created and freed during one check, and the runtime could not
say which. A setting of 2 or more is now also a threshold: a map freed
after at least that many lookups is reported at its free, with the
backtrace of the free, which names the owner whose drop freed it and so
the site that made it.
@ehartford
ehartford added this pull request to stack #3102 November 8, 2026 20:32
@ehartford ehartford changed the title i3093 #3093: WITH_TRACE_HM_PROBES=<N> reports a map freed after N lookups with its free's backtrace Nov 8, 2026
@ehartford
ehartford marked this pull request as ready for review November 8, 2026 20:55
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on 6ae15ee (stack top; covers #3098 and #3101): with run tools/battery.w rc=0, wall 1053 s under load, status green. Gate green on #3098's layer (separately) and on this top (the battery's own gate run).

@ehartford
ehartford merged commit f156a9a into main Nov 8, 2026
@ehartford
ehartford deleted the i3093 branch November 8, 2026 20:56
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.

1 participant