diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-07-25 14:04:26 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-07-27 16:19:07 +0200 |
| commit | b00d0fa0c9b8b8b2465f827dfc081e8c9a07d882 (patch) | |
| tree | eb96bc1eda383e46a29e1f6c03a9452ed8f01a15 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 6a1f77dba4c172a914bbbe7d3c789be528a61b9a (diff) | |
| download | rust-b00d0fa0c9b8b8b2465f827dfc081e8c9a07d882.tar.gz rust-b00d0fa0c9b8b8b2465f827dfc081e8c9a07d882.zip | |
Reliably signal coordinator thread on panic during ongoing codegen
Replace the separate AbortCodegenOnDrop guard by integrating this functionality into OngoingCodegen (or rather, the Coordinator part of it). This ensures that we send a CodegenAborted message and wait for workers to finish even if the panic occurs outside codegen_crate() (e.g. inside join_codegen()). This requires some minor changes to the handling of CodegenAborted, as it can now occur when the main thread is LLVMing rather than Codegenning.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
