History log of /openbsd/lib/librthread/rthread_stack.c (Results 1 – 20 of 20)
Revision Date Author Comments
# 4e44baf3 17-Sep-2021 deraadt <deraadt@openbsd.org>

these files do not need sys/param.h


# 8adff5e2 11-Feb-2018 deraadt <deraadt@openbsd.org>

Start mapping thread stacks with MAP_STACK. mmap() currently ignores
the flag, but some problem identification can begin.


# 3b1a36d1 10-Feb-2018 deraadt <deraadt@openbsd.org>

Shift top-of-stack down so that the random==0 case doesn't leave stack
pointer beyond the space.
ok stefan, tedu


# a5511fa9 05-Sep-2017 guenther <guenther@openbsd.org>

Move mutex, condvar, and thread-specific data routes, pthread_once, and
pthread_exit from libpthread to libc, along with low-level bits to
support them. Major bump to both libc and libpthread.

Requ

Move mutex, condvar, and thread-specific data routes, pthread_once, and
pthread_exit from libpthread to libc, along with low-level bits to
support them. Major bump to both libc and libpthread.

Requested by libressl team. Ports testing by naddy@
ok kettenis@

show more ...


# f050dd83 04-Sep-2016 akfaew <akfaew@openbsd.org>

Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".

ok tedu@


# b1c1249f 01-Sep-2016 deraadt <deraadt@openbsd.org>

delete wrong cvs $ tags


# 1f763892 24-Jan-2015 kettenis <kettenis@openbsd.org>

Add back <sys/param.h>; it's needed for MACHINE_STACK_GROWS_UP.

ok millert@, tobiasu@


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# 5a78b117 27-Jun-2014 matthew <matthew@openbsd.org>

Fix mmap() flag usage: explicitly specify MAP_PRIVATE and drop useless
MAP_FILE and MAP_HASSEMAPHORE flags.

Discussed with deraadt, tedu, and kettenis


# 07ac9641 18-Dec-2013 deraadt <deraadt@openbsd.org>

Provide a random stackgrap on pthread frames. Use _STACKALIGNBYTES to
ensure the frames are aligned correctly. Discussed at length with guenther
and kettenis
ok kettenis, this is the right first step


# 7ff8e670 01-Jun-2013 tedu <tedu@openbsd.org>

cleanup and consolidate the spinlock_lock (what a name!) code.
it's now atomic_lock to better reflect its usage, and librthread now
features a new spinlock that's really a ticket lock.
thrlseep can h

cleanup and consolidate the spinlock_lock (what a name!) code.
it's now atomic_lock to better reflect its usage, and librthread now
features a new spinlock that's really a ticket lock.
thrlseep can handle both types of lock via a flag in the clock arg.
(temp back compat hack)
remove some old stuff that's accumulated along the way and no longer used.
some feedback from dlg, who is concerned with all things ticket lock.
(you need to boot a new kernel before installing librthread)

show more ...


# e8f3dd6b 21-Mar-2013 deraadt <deraadt@openbsd.org>

Do not need machine/param.h


# 59188181 04-Aug-2012 guenther <guenther@openbsd.org>

Fix caching of stacks allocated with the default attributes.

based on a diff from Christian Schulte (cs at schulte.it)


# 07f29b68 19-Feb-2012 guenther <guenther@openbsd.org>

Use 'base' as an intermediate char* variable to avoid void* arithmetic


# 58dbb15c 18-Feb-2012 guenther <guenther@openbsd.org>

Fix the handling of the stackaddr, stacksize, and guardsize attributes:
don't try to merge values, round the sizes separately, and don't try to
unmap application-supplied stacks.
Copy from uthread th

Fix the handling of the stackaddr, stacksize, and guardsize attributes:
don't try to merge values, round the sizes separately, and don't try to
unmap application-supplied stacks.
Copy from uthread the caching of default-sized stacks.
Have pthread_attr_init() and pthread_create() get the default attributes
from staticly allocated pthread_attr_t.
Cache the pagesize in _rthread_init() and provide a macro for rounding to it

based on suggestions from kettenis@ and tedu@, ok kettenis@

show more ...


# abaa7c77 06-Nov-2011 guenther <guenther@openbsd.org>

Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includes


# f12804da 26-May-2010 guenther <guenther@openbsd.org>

If the stack size attribute isn't larger than the guard-page size
attribute then make pthread_create() return EINVAL instead of whatever
was in errno on entry (possibly making it appear it succeeded

If the stack size attribute isn't larger than the guard-page size
attribute then make pthread_create() return EINVAL instead of whatever
was in errno on entry (possibly making it appear it succeeded when it
really failed). Encountered by Jung (moorang at gmail.com).

show more ...


# 0ed6882f 27-Oct-2006 tedu <tedu@openbsd.org>

two comment typos from tbert


# 400e7491 05-Jan-2006 otto <otto@openbsd.org>

Remove redundant mprotect() calls (we're unmapping the region anyway)
and check user stack for proper alignment. ok tedu@ marc@


# 2b8233b0 01-Jan-2006 marc <marc@openbsd.org>

thread stack handling changes. Add guard zones and allow stack
size (and guard zone size) to be set using pthread_attr. Guard
zones are specified in bytes, but implemented in terms of a
page size.

thread stack handling changes. Add guard zones and allow stack
size (and guard zone size) to be set using pthread_attr. Guard
zones are specified in bytes, but implemented in terms of a
page size.

OK Otto@

show more ...