diff options
author | avg <avg@FreeBSD.org> | 2013-07-09 09:01:44 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-07-09 09:01:44 +0000 |
commit | 44c288e1496cf711ed470b921a3dc028c75fffe3 (patch) | |
tree | 0e3df933b35a6abe659511e476c5f9d33eea660e /contrib/libc++/src/future.cpp | |
parent | 22e327d0053fd6094d76854a6c73d640ef59799a (diff) | |
download | FreeBSD-src-44c288e1496cf711ed470b921a3dc028c75fffe3.zip FreeBSD-src-44c288e1496cf711ed470b921a3dc028c75fffe3.tar.gz |
should_yield: protect from td_swvoltick being uninitialized or too stale
The distance between ticks and td_swvoltick should be calculated as
an unsigned number. Previously we could end up comparing a negative
number with hogticks in which case should_yield() would give incorrect
answer.
We should probably ensure that td_swvoltick is properly initialized.
Sponsored by: HybridCluster
MFC after: 5 days
Diffstat (limited to 'contrib/libc++/src/future.cpp')
0 files changed, 0 insertions, 0 deletions