1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Annotate td_cowgen check as unlikely.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mateusz Guzik 2018-11-29 04:48:22 +00:00
parent 59dc8c79c6
commit e272bf479b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341180

View File

@ -66,7 +66,7 @@ syscallenter(struct thread *td)
sa = &td->td_sa;
td->td_pticks = 0;
if (td->td_cowgen != p->p_cowgen)
if (__predict_false(td->td_cowgen != p->p_cowgen))
thread_cow_update(td);
traced = (p->p_flag & P_TRACED) != 0;
if (traced || td->td_dbgflags & TDB_USERWR) {