-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Lock stderr in panic handler #122218
Lock stderr in panic handler #122218
Conversation
r? @Nadrieril rustbot has assigned @Nadrieril. Use r? to explicitly pick a reviewer |
82a4bef
to
288380d
Compare
Is there a risk of deadlock with this? Because of another part of the compiler taking the lock, or a double-panic maybe? |
I don't know enough about parallel trickery to approve this r? compiler |
It uses a re-entrant lock, so that should avoid issues happening on the same thread. There's some risk of deadlock due to usages of queries sneaking in, but those already carry a deadlock risk due to using the query system in an invalid state. |
Let's give it a try. It's easy enough to revert if the approach causes trouble. @bors r+ rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7de1a1f): comparison URL. Overall result: ✅ improvements - no action needed@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)This benchmark run did not return any relevant results for this metric. 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: 674.911s -> 672.776s (-0.32%) |
Fixes #119789.