Annotate TDP_RFPPWAIT as unlikely.
The flag is only set on vfork, but is tested for *all* syscalls. On amd64 this shortens common-case (not vfork) code.
This commit is contained in:
parent
a5ac8272c0
commit
adce241981
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340786
@ -230,7 +230,7 @@ syscallret(struct thread *td, int error)
|
|||||||
PROC_UNLOCK(p);
|
PROC_UNLOCK(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (td->td_pflags & TDP_RFPPWAIT) {
|
if (__predict_false(td->td_pflags & TDP_RFPPWAIT)) {
|
||||||
/*
|
/*
|
||||||
* Preserve synchronization semantics of vfork. If
|
* Preserve synchronization semantics of vfork. If
|
||||||
* waiting for child to exec or exit, fork set
|
* waiting for child to exec or exit, fork set
|
||||||
|
Loading…
Reference in New Issue
Block a user