[Jamvm-general] nativeStackBase() in os/linux/os.c not returning StackBase
Brought to you by:
rlougher
|
From: Frieder B. <ber...@go...> - 2016-02-29 16:05:14
|
Hey JamVM-Guys, i'm a bit confused by the implementation of the function nativeStackBase() in os/linux/os.c It uses pthread_attr_getstack(), which returns the actual stack base [1], but then you add the size on this void* . So if this really is the intention, could someone please explain the reason of this to me?:-) (The void* addition is the reason I stumbled over this, as only gnu allows this, which I am not using) Greetings Frieder [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_getstack.html |