<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/include/thread_private.h, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2019-02-13T13:22:14+00:00</updated>
<entry>
<title>New futex(2) based rwlock implementation based on the mutex code.</title>
<updated>2019-02-13T13:22:14+00:00</updated>
<author>
<name>mpi</name>
<email></email>
</author>
<published>2019-02-13T13:22:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1cc08e9dfa205222edf7fcc2dfc13ff00f572c84'/>
<id>urn:sha1:1cc08e9dfa205222edf7fcc2dfc13ff00f572c84</id>
<content type='text'>
This implementation reduces contention because threads no longer need
to spin calling sched_yield(2) before going to sleep.

Tested by many, thanks!

ok visa@, pirofti@
</content>
</entry>
<entry>
<title>Make the "not my pool" searching loop a tiny bit smarter, while</title>
<updated>2019-01-10T18:45:33+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2019-01-10T18:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=93282eac7fa28695cb6880305f3757cbff94eca0'/>
<id>urn:sha1:93282eac7fa28695cb6880305f3757cbff94eca0</id>
<content type='text'>
making the number of pools variable.  Do not document the malloc
conf settings atm, don't know yet if they will stay.  Thanks to all
the testers. ok deraadt@
</content>
</entry>
<entry>
<title>Implement __cxa_thread_atexit to support C++11 thread_local scope.  The</title>
<updated>2017-12-05T13:45:31+00:00</updated>
<author>
<name>kettenis</name>
<email></email>
</author>
<published>2017-12-05T13:45:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6995a7e31c862e513fc32eae98d52c8fc9e09580'/>
<id>urn:sha1:6995a7e31c862e513fc32eae98d52c8fc9e09580</id>
<content type='text'>
interface is also made available as __cxa_thread_atexit_impl to satisfy the
needs of GNU libstdc++.

ok guenther@, millert@
</content>
</entry>
<entry>
<title>Revert recent changes to unbreak ports/net/samba</title>
<updated>2017-11-04T22:53:57+00:00</updated>
<author>
<name>jca</name>
<email></email>
</author>
<published>2017-11-04T22:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b30105a553258a2086424ddb4c40ae559cf8dc7c'/>
<id>urn:sha1:b30105a553258a2086424ddb4c40ae559cf8dc7c</id>
<content type='text'>
While it is not clear (to me) why that ports ends up with corrupted
shared libs, reverting those changes fixes the issue and should allow us
to close p2k17 more smoothly.

Discussed with a bunch, ok ajacoutot@ guenther@
</content>
</entry>
<entry>
<title>Change pthread_cleanup_{push,pop} to macros that store the cleanup info</title>
<updated>2017-10-28T21:23:14+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2017-10-28T21:23:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9990829d38e8d6b09ca6313b53ebc24368889ae0'/>
<id>urn:sha1:9990829d38e8d6b09ca6313b53ebc24368889ae0</id>
<content type='text'>
on the stack instead of mallocing the list and move the APIs from libpthread
to libc so that they can be used inside libc.

Note: the standard was explicitly written to permit/support this
"macro with unmatched brace" style and it's what basically everyone
else already does.  We xor the info with random cookies with a
random magic to detect/trip-up overwrites.

Major bump to both libc and libpthread due to the API move.

ok mpi@
</content>
</entry>
<entry>
<title>Move mutex, condvar, and thread-specific data routes, pthread_once, and</title>
<updated>2017-09-05T02:40:54+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2017-09-05T02:40:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=03cdb5baba30326ba37cf707fc3767747ee4173e'/>
<id>urn:sha1:03cdb5baba30326ba37cf707fc3767747ee4173e</id>
<content type='text'>
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@
</content>
</entry>
<entry>
<title>Wrap _malloc_init() so internal calls go directly</title>
<updated>2016-10-15T18:24:40+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-10-15T18:24:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=85742dd42404aab0c4aa5685dda0a45678c1aceb'/>
<id>urn:sha1:85742dd42404aab0c4aa5685dda0a45678c1aceb</id>
<content type='text'>
prodded by otto@
ok kettenis@ otto@
</content>
</entry>
<entry>
<title>Less lock contention by using more pools for mult-threaded programs.</title>
<updated>2016-09-01T10:41:02+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2016-09-01T10:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6d4b6672a283558880b46cae242c9f1599f7ba22'/>
<id>urn:sha1:6d4b6672a283558880b46cae242c9f1599f7ba22</id>
<content type='text'>
tested by many (thanks!) ok tedu, guenther@
</content>
</entry>
<entry>
<title>Use a Thread Information Block in both single and multi-threaded programs.</title>
<updated>2016-05-07T19:05:22+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-05-07T19:05:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=68e76f55be2ed227ee7e29661e23ed40ec883b46'/>
<id>urn:sha1:68e76f55be2ed227ee7e29661e23ed40ec883b46</id>
<content type='text'>
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a.  This is an ABI break from 5.9-stable!

Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes.  'errno' *must* be declared via
&lt;errno.h&gt; now!

Clean up libpthread's symbol exports like libc.

On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.

Testing by various, particularly sthen@ and patrick@
ok kettenis@
</content>
</entry>
<entry>
<title>Make pthread_atfork() track the DSO that called it like atexit() does,</title>
<updated>2015-04-07T01:27:07+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-04-07T01:27:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fd187e2b735724c166cd750838f5169b96a51c6f'/>
<id>urn:sha1:fd187e2b735724c166cd750838f5169b96a51c6f</id>
<content type='text'>
unregistering callbacks if the DSO is unloaded.  Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.

verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
</content>
</entry>
</feed>
