forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Box<T> drop glue is pretty simple and should not lead to blow-up problems. Moreover, not inlining it leads to LLVM pessimizing some pointer-based optimizations because it thinks the pointer passed to the drop glue could be escaped. Fixes rust-lang#46515. However, this is not a great fix -- the problem still exists for other smart pointers besides `Box`.
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters