-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ remove usage of std::shared_ptr as shared_ptr is possibly implemented using vptr, which prevents hot-reloading cleanly we should not use shared_ptr in a potentially hot-reloaded module, as the deleter() mechanism of shared_ptr is sometimes implemented using dynamic dispatch. This means that each shared_ptr has potentially a vptr to a table of dynamic deleter functions - which may go stale once the module has been reloaded. Note that this only affects a hot-reloading scenario.
- Loading branch information
Showing
1 changed file
with
70 additions
and
48 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