Created
March 26, 2015 18:34
-
-
Save kumpera/758bb75b636f8e71a232 to your computer and use it in GitHub Desktop.
Functions that needs locking fixes
This file contains hidden or 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
Here as the runtime functions that need locking to be adjusted. | |
There are two categories of locking issues that needs to be addressed: | |
- Manage allocation while holding a lock | |
This is bad for performance and is an issue for coop suspend | |
- Too much stuff done while holding a lock | |
Locks should only be used to protect data structures. The runtime should | |
use optimistic initialization everywhere that's possible as it reduces | |
the surface area of our locking protocol. | |
Bad functions: | |
mono_class_create_runtime_vtable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment