]> granicus.if.org Git - gc/commit
Remove redundant GC_with_callee_saves_pushed call in multi-threaded builds
authorIvan Maidanski <ivmai@mail.ru>
Tue, 24 Sep 2019 07:52:51 +0000 (10:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 24 Sep 2019 07:52:51 +0000 (10:52 +0300)
commit94efaa381a0cf85848f3bdda97cd6f19106c73dd
treedd551b3c930a18096c4a0daddd48fa6940204038
parent7df9541add6af01c57d91eff6fb34a6eb9d529d6
Remove redundant GC_with_callee_saves_pushed call in multi-threaded builds

In GC_push_regs_and_stack, if cold_gc_frame is null and threads
support is on then there is no need to call
GC_with_callee_saves_pushed(GC_push_current_stack) as
GC_push_current_stack is no-op in this case.

* mark_rts.c (GC_push_current_stack): Reformat title comment.
* mark_rts.c [THREADS] (GC_push_current_stack): Do not check that
cold_gc_frame is non-zero; add comment about it.
* mark_rts.c [THREADS] (GC_push_regs_and_stack): If cold_gc_frame is
null then do not call GC_with_callee_saves_pushed().
mark_rts.c