-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was included originally because of concerns about finalizing a non-Sync `T` value off-thread. If a value is `Sync`, it means that it is safe for two threads to access its data simultaneuosly: in other words, it has some synchronization guarantees. A common example is `RefCell`, which is safe to send between threads, but is marked `!Sync` because the dynamic borrow checking is not atomic. Finalizing `!Sync` values no longer problematic, because even though finalizers are run off-thread, they will run when the object is dead [1], so there is no chance of a data race. [1]: softdevteam/alloy#30
- Loading branch information
1 parent
ed4ec8c
commit 21ca9b8
Showing
1 changed file
with
19 additions
and
22 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