Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move GC locking down from get_new_pmc_header into the GC
With this change all GC lock handling is done at the same layer (the GC GMS implementation) which is the only way to keep the locking strategy (and the poor programmer trying to understand it) sane. While allocating new memory is a very straight forward operation, freeing memory unfortunatley is much more complicated since it can be done by a mark & sweep run (which naturally has to take the lock) but also manually through API calls. Therefore I need to tell gc_gms_free_pmc_attributes if it has to do the locking by itself or not using a gc_gms_free_pmc_attributes_locked function and the new "locked" GC variable.
- Loading branch information
Showing
3 changed files
with
58 additions
and
15 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
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