-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfaults due to race condition when initializing native call sites
Ensure that a native callsite's arg_types and arg_info arrays are fully populated before the body's pointers to them are assigned. Otherwise another thread may copy uninitialized data as part of a copy_to operation (probably triggered by getattr_o).
- Loading branch information
Showing
2 changed files
with
17 additions
and
14 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
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
Maybe need
MVM_barrier()
after here?