-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose functions to enable pushing of custom proc and ranges
(cherry-pick of d0a8081 from Unity-Technologies/bdwgc) The new API functions are: GC_push_proc, GC_custom_push_proc and GC_custom_push_range. * include/gc/gc_mark.h (GC_push_proc, GC_custom_push_proc, GC_custom_push_range): New public function declaration. * include/private/gc_pmark.h (GC_signal_mark_stack_overflow): Do not declare. * include/private/gc_pmark.h (GC_push_obj): Use GC_custom_push_proc(). * typd_mlc.c (GC_typed_mark_proc): Likewise. * mark.c (GC_signal_mark_stack_overflow): Define as STATIC instead of GC_INNER. * mark.c [PARALLEL_MARK] (GC_steal_mark_stack): Store a value to top->mse_start before to top->mse_descr.w. * mark.c (GC_push_all): Reformat comment; rename b to bottom and t to top in comment. * mark.c (GC_custom_push_range, GC_custom_push_proc, GC_push_proc): Implement. * tests/gctest.c [GC_PTHREADS && CPPCHECK] (main): Reference GC_custom_push_range and GC_push_proc as UNTESTED. Co-authored-by: Ivan Maidanski <[email protected]>
- Loading branch information
Showing
5 changed files
with
64 additions
and
24 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
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