-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix races conditions with SyntaxContext
decoding
#115082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @cjgillot (rustbot has picked a reviewer for you, use r? to override) |
This could use a perf run. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit e41240e with merge 7251ff878f99800ce3b521cacac760ceb8c60931... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (7251ff878f99800ce3b521cacac760ceb8c60931): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 634.844s -> 635.738s (0.14%) |
Perf: unfiltered results show small improvements and small regressions balancing out. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b60e31b): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 630.156s -> 630.278s (0.02%) |
This changes
SyntaxContext
decoding to work with concurrent decoding. Theremapped_ctxts
field now only storesSyntaxContext
which have completed decoding, while the newdecoding
andlocal_in_progress
keeps track ofSyntaxContext
s which are in process of being decoding and on which threads.This fixes 2 issues with the current implementation. It can return an
SyntaxContext
which contains dummy data if another thread starts decoding before the first one has completely finished. Multiple threads could also allocate multipleSyntaxContext
s for the sameraw_id
.