]> granicus.if.org Git - gc/commit
Fix stackbottom/stack_end assignment in GC_call_with_gc_active
authorIvan Maidanski <ivmai@mail.ru>
Sat, 20 Jul 2013 11:21:37 +0000 (15:21 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 20 Jul 2013 13:58:33 +0000 (17:58 +0400)
commitb2d9c1c087dafe378320263bcea84fd059c8ef3f
treee5ff8067ae42e024c68fba9d7b4ad8669b60a798
parent6aa0b86db9c67eb78c779d69b5816a5dd52b309c
Fix stackbottom/stack_end assignment in GC_call_with_gc_active

* misc.c (GC_call_with_gc_active): Add GC_noop1 call between "fn" call
and "return" statement to discourage the compiler from treating the
function call as a tail one (thus ensuring "stackbottom" COOLER_THAN
any stack pointer value obtained inside "fn").
* pthread_support.c (GC_call_with_gc_active): Likewise.
* win32_threads.c (GC_call_with_gc_active): Likewise.
misc.c
pthread_support.c
win32_threads.c