Fix null dereference in GC_stack_range_for if not DARWIN_DONT_PARSE_STACK
authorIvan Maidanski <ivmai@mail.ru>
Wed, 26 Oct 2016 21:31:14 +0000 (00:31 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 26 Oct 2016 21:31:14 +0000 (00:31 +0300)
commit3a289296bd0feafd3d9008cb6be25fe6e0e63c76
treef9c29284548855c3595d71ef58bd3661a2c7be0b
parentedde77ef4675c44214af54184b59ab6b371b9dc1
Fix null dereference in GC_stack_range_for if not DARWIN_DONT_PARSE_STACK
(fix commit 4ceae609)

* darwin_stop_world.c (GC_stack_range_for): Use GC_ATTR_UNUSED for
paltstack_hi argument (because the latter is not used currently if
!DARWIN_DONT_PARSE_STACK); do not access p->altstack[_size] unless
DARWIN_DONT_PARSE_STACK; add TODO item.
* darwin_stop_world.c [!DARWIN_DONT_PARSE_STACK] (GC_push_all_stacks):
Do not use altstack_hi and altstack_lo; add TODO item.
darwin_stop_world.c