]> granicus.if.org Git - gc/commit
Fix save_callers for multi-threaded case if built-in backtrace unavailable
authorIvan Maidanski <ivmai@mail.ru>
Mon, 22 Apr 2019 21:44:52 +0000 (00:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 22 Apr 2019 21:44:52 +0000 (00:44 +0300)
commita8c5ee41a95a1a541f088582de909f537a6827d9
tree49aabda3e709f67f22149d618cc00a03477346dd
parentfda44619ecb58be565ce60f64ea73627046c04f7
Fix save_callers for multi-threaded case if built-in backtrace unavailable

GC_stackbottom could be used only in the single-threaded case.

* os_dep.c [SAVE_CALL_CHAIN && (NARGS!=0 || NFRAMES%2!=0
|| !GC_HAVE_BUILTIN_BACKTRACE) && THREADS] (GC_save_callers): Do not
compare fp to GC_stackbottom.
* os_dep.c [SAVE_CALL_CHAIN && (NARGS!=0 || NFRAMES%2!=0
|| !GC_HAVE_BUILTIN_BACKTRACE) && THREADS && STACK_GROWS_UP]
(GC_save_callers): Break the loop if fp is NULL.
os_dep.c