]> Zhao Yanbai Git Server - minix.git/commit
libmthread: add guard pages to stacks
authorThomas Veerman <thomas@minix3.org>
Mon, 13 Feb 2012 12:02:12 +0000 (12:02 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 13 Feb 2012 13:50:31 +0000 (13:50 +0000)
commitaccaae9b2c0597c46dc731e3b360761b8aeef8dd
tree9b129648dced0254af4b7d0e1d952a8463050eea
parent0949f5b342187849b90b94accc7271188ea2eabf
libmthread: add guard pages to stacks

Add guard pages to the top of the stack to catch overflow errors.
Moreover, fix a bug where libmthread would keep using a stack that was
just deallocated; a detached thread would deallocate its own stack after
it was finished running).
lib/libmthread/allocate.c
lib/libmthread/global.h
lib/libmthread/proto.h
lib/libmthread/scheduler.c