<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libthr/thread, branch release/8.0.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.0.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.0.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2009-11-21T06:13:29Z</updated>
<entry>
<title>Create release/8.0.0 for the 8.0-RELEASE.</title>
<updated>2009-11-21T06:13:29Z</updated>
<author>
<name>Ken Smith</name>
<email>kensmith@FreeBSD.org</email>
</author>
<published>2009-11-21T06:13:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a4d3b78df842614c46b116fc5a6f470be637dccd'/>
<id>urn:sha1:a4d3b78df842614c46b116fc5a6f470be637dccd</id>
<content type='text'>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 8.0-RELEASE image.
</content>
</entry>
<entry>
<title>MFC r197445:</title>
<updated>2009-09-24T08:35:17Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2009-09-24T08:35:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=917c07ca1da7b9a0ab3b31a0d842163c104e8ce5'/>
<id>urn:sha1:917c07ca1da7b9a0ab3b31a0d842163c104e8ce5</id>
<content type='text'>
Let fall down in the hard path (thus handling shared waiters wakeup
correctly) for the shared waiters also in the rwlock held in shared mode
as well, fixing possible deadlocks.

Please note that this is a special condition as we want this fix in
before RC2 as we assume it is critical and so it has been handled
as an instant-merge.  For the STABLE_7 branch, 1 week before the MFC
is assumed.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>In the current code, rdlock_count is not correctly handled for some cases.</title>
<updated>2009-07-06T09:31:04Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2009-07-06T09:31:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=137ae5d29191831b000584e869096796f9a88213'/>
<id>urn:sha1:137ae5d29191831b000584e869096796f9a88213</id>
<content type='text'>
The most notable is that it is not bumped in rwlock_rdlock_common() when
the hard path (__thr_rwlock_rdlock()) returns successfully.
This can lead to deadlocks in libthr when rwlocks recursion in read mode
happens.
Fix the interested parts by correctly handling rdlock_count.

PR:		threads/136345
Reported by:	rink
Tested by:	rink
Reviewed by:	jeff
Approved by:	re (kib)
MFC:		2 weeks
</content>
</entry>
<entry>
<title>These are some cosmetic changes to improve the clarity of libthr's fork implementation.</title>
<updated>2009-05-11T16:45:53Z</updated>
<author>
<name>Brian Feldman</name>
<email>green@FreeBSD.org</email>
</author>
<published>2009-05-11T16:45:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=43af51a2b5e92a4b4a9f345800a929e0dc438737'/>
<id>urn:sha1:43af51a2b5e92a4b4a9f345800a929e0dc438737</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use</title>
<updated>2009-04-19T23:02:50Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2009-04-19T23:02:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d1f2f1c3f3e9e3ce60528824509b42c1a9424b70'/>
<id>urn:sha1:d1f2f1c3f3e9e3ce60528824509b42c1a9424b70</id>
<content type='text'>
that definition in the custom locking code for the run-time linker
rather than local definitions.

Pointed out by:	tinderbox
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Forcibly unlock the malloc() locks in the child process after fork(),</title>
<updated>2009-03-19T10:32:25Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2009-03-19T10:32:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=29986e1bac92a068da1db1d7e68eb031e4fc49a7'/>
<id>urn:sha1:29986e1bac92a068da1db1d7e68eb031e4fc49a7</id>
<content type='text'>
by temporary pretending that the process is still multithreaded.
Current malloc lock primitives do nothing for singlethreaded process.

Reviewed by:	davidxu, deischen
</content>
</entry>
<entry>
<title>Don't ignore other fcntl functions, directly call __sys_fcntl if</title>
<updated>2009-03-09T05:54:43Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2009-03-09T05:54:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5b71b82e7029f3f02763c23fa24b149c0cb30c46'/>
<id>urn:sha1:5b71b82e7029f3f02763c23fa24b149c0cb30c46</id>
<content type='text'>
WITHOUT_SYSCALL_COMPAT is not defined.

Reviewed by:	deischen
</content>
</entry>
<entry>
<title>Don't reference non-existent __fcntl_compat if WITHOUT_SYSCALL_COMPAT is defined.</title>
<updated>2009-03-09T02:34:02Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2009-03-09T02:34:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c30c187d60572568da72c86d475e958d9a9bdc88'/>
<id>urn:sha1:c30c187d60572568da72c86d475e958d9a9bdc88</id>
<content type='text'>
Submitted by:	Pawel Worach "pawel dot worach at gmail dot com"
</content>
</entry>
<entry>
<title>When libthr and rtld start up, there are a number of magic spells cast</title>
<updated>2008-12-07T02:32:49Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2008-12-07T02:32:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=70ba1e8fc192b8d7e85bcf0869bfe0254bd1ef4d'/>
<id>urn:sha1:70ba1e8fc192b8d7e85bcf0869bfe0254bd1ef4d</id>
<content type='text'>
in order to get the symbol binding state "just so".  This is to allow
locking to be activated and not run into recursion problems later.

However, one of the magic bits involves an explicit call to _umtx_op()
to force symbol resolution.  It does a wakeup operation on a fake,
uninitialized (ie: random contents) umtx.  Since libthr isn't active, this
is harmless.  Nothing can match the random wakeup.

However, valgrind finds this and is not amused.  Normally I'd just
write a suppression record for it, but the idea of passing random
args to syscalls (on purpose) just doesn't feel right.
</content>
</entry>
<entry>
<title>Provide custom simple allocator for rtld locks in libthr. The allocator</title>
<updated>2008-12-02T11:58:31Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2008-12-02T11:58:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=10b4034657dfc714985bcb76bdb93fdd7346a6c2'/>
<id>urn:sha1:10b4034657dfc714985bcb76bdb93fdd7346a6c2</id>
<content type='text'>
does not use any external symbols, thus avoiding possible recursion into
rtld to resolve symbols, when called.

Reviewed by:	kan, davidxu
Tested by:	rink
MFC after:	1 month
</content>
</entry>
</feed>
