Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created March 26, 2015 18:34
Show Gist options
  • Save kumpera/758bb75b636f8e71a232 to your computer and use it in GitHub Desktop.
Save kumpera/758bb75b636f8e71a232 to your computer and use it in GitHub Desktop.
Functions that needs locking fixes
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