SVNews r327394

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-31 00:33:28 - r327394 by mjg (Mateusz Guzik)

Complete list of files affected by revision r327394:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/kern/kern_mutex.c  

Commit message:

mtx: pre-read the lock value in thread_lock_flags_

Since this function is effectively slow path, if we get here the lock is most
likely already taken in which case it is cheaper to not blindly attempt the
atomic op.

While here move hwpmc probe out of the loop to match other primitives.

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 38 ms, 1 file printed. Current time is 2018-04-20 06:58:49. All times are in UTC/GMT.