-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor copy to use template for concurrent GC
Copy is now an inline function which calls copyForVariant, which performs the previous functionality for copy. copyForVariant is a template function that is told the variant of template that it is to use, either CS or STW. This dictates if copyForVariant should exhibit Concurrent Scavenger behaviour or Stop The World behaviour. The enum CopyVariant is introduced to represent the different variants of copyForVariant. The two options are STW for IS_CONCURRENT_ENABLED == false, and CS for IS_CONCURRENT_ENABLED == true. Signed-off-by: Oussama Saoudi <oussama.saoudi@ibm.com>
- Loading branch information
1 parent
b7eb963
commit 66e9c45
Showing
2 changed files
with
17 additions
and
2 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