Mark Johnston ce1c953ee0 Don't modify curthread->td_locks unless INVARIANTS is enabled.
This field is only used in a KASSERT that verifies that no locks are held
when returning to user mode. Moreover, the td_locks accounting is only
correct when LOCK_DEBUG > 0, which is implied by INVARIANTS.

Reviewed by:	jhb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D3205
2015-08-02 00:03:08 +00:00
..
2012-11-11 23:25:47 +00:00
2013-10-18 11:25:08 +00:00
2014-03-11 10:13:06 +00:00
2015-07-08 22:09:47 +00:00
2015-06-29 00:30:30 +00:00
2012-01-15 13:23:18 +00:00
2014-07-02 13:24:21 +00:00
2013-10-16 09:12:40 +00:00
2015-07-04 10:33:33 +00:00
2012-01-15 13:23:18 +00:00
2014-07-07 00:27:09 +00:00
2015-04-22 01:54:25 +00:00
2014-09-28 11:32:46 +00:00
2014-07-07 00:27:09 +00:00
2015-07-16 07:05:42 +00:00
2012-12-10 23:12:51 +00:00
2015-06-30 17:00:45 +00:00
2015-05-15 20:43:37 +00:00
2015-05-28 22:06:05 +00:00
2012-03-28 20:58:30 +00:00
2014-11-13 05:26:14 +00:00
2014-07-30 00:28:29 +00:00
2015-05-24 11:24:14 +00:00
2015-07-11 15:22:11 +00:00
2015-07-11 15:22:11 +00:00
2015-08-01 07:21:14 +00:00
2015-07-11 15:22:11 +00:00
2015-04-22 14:38:58 +00:00
2015-04-22 14:38:58 +00:00