forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race between verify_pool and the marking phase
`verify_pool` is a function used to check the invariant that a major pool should contain no garbage after sweeping. It is obviously allowed to race with marking (which can only turn UNMARKED objects into MARKED or NOT_MARKABLE, but not into GARBAGE), we only need to mark the read as a relaxed atomic read.
- Loading branch information
1 parent
a682d51
commit 6169c18
Showing
2 changed files
with
4 additions
and
6 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