Skip to content

Factor current-span logic into a caching handle#2139

Merged
bors merged 1 commit into
rust-lang:masterfrom
saethlin:lazy-current-span
May 23, 2022
Merged

Factor current-span logic into a caching handle#2139
bors merged 1 commit into
rust-lang:masterfrom
saethlin:lazy-current-span

Conversation

@saethlin
Copy link
Copy Markdown
Member

@saethlin saethlin commented May 21, 2022

After #2030 and while working on #1935 it became quite clear that we need to do some caching here, because some retag operations generate many calls to log_invalidation, and would thus search the current thread's stack many times for a local crate. This caching fixes that. This handle type also has the nice benefit of tucking away all the ThreadManager + CrateNum logic.

@saethlin saethlin force-pushed the lazy-current-span branch from 4b49702 to 6e0e612 Compare May 21, 2022 14:21
Comment thread src/machine.rs Outdated
Comment thread src/machine.rs Outdated
Comment thread src/machine.rs Outdated
@saethlin saethlin force-pushed the lazy-current-span branch from 6e0e612 to b20c6cf Compare May 22, 2022 22:24
@RalfJung
Copy link
Copy Markdown
Member

Nice!
@bors r+

@bors
Copy link
Copy Markdown
Contributor

bors commented May 23, 2022

📌 Commit b20c6cf has been approved by RalfJung

@bors
Copy link
Copy Markdown
Contributor

bors commented May 23, 2022

⌛ Testing commit b20c6cf with merge d60aa47...

@bors
Copy link
Copy Markdown
Contributor

bors commented May 23, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing d60aa47 to master...

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.

3 participants