diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-05-05 21:25:21 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-05-05 21:25:21 +0300 |
commit | 4c21deefd01a6687708c1116263316918d7b2650 (patch) | |
tree | f110feb95e28868f7c1e453c3763ca6c07d32bb4 /alloc.c | |
parent | dd8c0233df47a3c0bd4f7a174f73cf5201c57cfc (diff) | |
download | bdwgc-4c21deefd01a6687708c1116263316918d7b2650.tar.gz |
Avoid code duplication regarding GC_push_roots in GC_mark_some_inner
(refactoring)
* mark.c (push_roots_and_advance): New static function (code copied
from GC_mark_some).
* mark.c (GC_mark_some_inner): Return TRUE if GC_mark_state is MS_NONE
on entry; replace GC_push_roots() calls (and the related code) with
push_roots_and_advance() ones.
Diffstat (limited to 'alloc.c')
0 files changed, 0 insertions, 0 deletions