summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_attr_setstackaddr.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-10 23:00:07 +0000
committerjhb <jhb@FreeBSD.org>2001-08-10 23:00:07 +0000
commita246c20aae389a5d307ee4f3c3a882beb1388f64 (patch)
tree2c126aa8065a99016cdde9f028ddbdfec638a7a7 /lib/libpthread/thread/thr_attr_setstackaddr.c
parent4a89454dcd75ebc44e557012c2d007934836f9de (diff)
downloadFreeBSD-src-a246c20aae389a5d307ee4f3c3a882beb1388f64.zip
FreeBSD-src-a246c20aae389a5d307ee4f3c3a882beb1388f64.tar.gz
Add an optimization where we check hte PS_ASTPENDING and PS_NEEDRESCHED
flags with interrupts disabled to see if we should call ast() during doreti. This was mostly submitted by Bruce, but his original patch did the looping in ast() in assembly rather than in the ast() function itself. Once we've actually called into the ast() function, it's cheaper to just loop inside the function rather than returning from the function, performing the check, and then calling the function again. However, we can optimize the first check to avoid calling the function at all. Other architectures may choose to implement this optimization if they wish but it is not required for correct operation. Submitted by: bde
Diffstat (limited to 'lib/libpthread/thread/thr_attr_setstackaddr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud