Optimizes run_once(_safe) (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Dec 2012 02:57:52 +0000 (18:57 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Dec 2012 02:57:52 +0000 (18:57 -0800)
commit18fd12f5b28246cedf29846c831696339675e70c
treee5ce7487daa351ef76e0a10d2781e928083dfe17
parentd2618a177bf82bc62d62d7c273067274cff2a068
Optimizes run_once(_safe) (XCC)

Takes the old run_once_safe and optimizes it for being completed, so we
don't hit an atomic_swap (and a couple branches) each time through.
Given this, I don't mind using it in more places, so the non-safe
version is now the 'racy' version (same with init_once()).

Reinstall your kernel headers.
kern/include/ros/common.h
user/parlib/slab.c
user/parlib/uthread.c
user/parlib/vcore.c
user/pthread/futex.c
user/pthread/pthread.c