]> git.pond.sub.org Git - empserver/commit
(lwpCreate): Check STKALIGN is sane.
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 7 Dec 2005 20:28:12 +0000 (20:28 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 7 Dec 2005 20:28:12 +0000 (20:28 +0000)
commit28e116dac4f0ad4e7e1254f12869583d837d1dc2
treed15d54e4da5738aa7ccd1550274277c97ed327ae
parent3bc2c1ae082df813b5540ba874bb7bce8478f61c
(lwpCreate): Check STKALIGN is sane.

(lwpCreate): Used to allocate one byte more than necessary.  The fix
won't save memory (malloc() will add the byte back), it's just clearer
this way.

(lwpCreate): Clean up computation of sp.  Rename parameter size to
stacksz.

(lwpCreate): Always compute newp->lowmark and newp->highmark from sp,
not from s.  Old code misaligned newp->himark for stacks growing
upward when stack size argument wasn't aligned.
src/lib/lwp/lwp.c