Fix first_thread stack_base initialzation if custom GC_stackbottom (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 29 Apr 2019 06:44:42 +0000 (09:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 29 Apr 2019 06:44:42 +0000 (09:44 +0300)
commit757fcad526d4d1520142c4ab60f86902a36d0caf
tree0fbfe9baeb0854cc2e535e6895bda30915e0e9d6
parente5a18e6a9901640d40a314732997aabefac3f49c
Fix first_thread stack_base initialzation if custom GC_stackbottom (Win32)

Stack bottom value of the primordial thread should be obtained from
GC_stackbottom.

* win32_threads.c [GC_ASSERTIONS] (GC_thr_init): Remove sb_result local
variable.
* win32_threads.c (GC_thr_init): Initalize sb mem_base and reg_base
fields with GC_stackbottom and GC_register_stackbottom, respectively;
do not call GC_get_stack_base().
win32_threads.c