Instead of throwing an exception allocate its memory and initialize it
explicitly. Makes std::make_exception_ptr more efficient since no stack
unwinding is needed.
Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project Restricted Project
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Hi!
Inspired by what libstdc++ does: we don't have to throw + catch (thus unwinding) an exception when creating exception_ptr,
because libcxxabi knows exactly how to create an exception_ptr from the given object.
Could you please validate this idea and if this seems reasonable guide me on what and where should be adjusted to make
generated_files/modules/etc. tests pass?
Comment Actions
- + clang-format
- cleanup
- + clang-format, fix libcxx.imp
- wip on making the build green
- wip on making the build green
- regenerate ignore_format.txt
- bits of formatting
- wip on making the build green
Comment Actions
Since we are moving to GitHub PRs and there hasn't been any activity here yet, could you move this patch over?