X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Furcu%2Fstatic%2Furcu-mb.h;h=20e604da64a1da6096b664f6791d2c8932ec7612;hb=2a27e9319bacc9bc98f38afb7e4f050601ab979b;hp=0dd7d427b567635adb8dbfa7a397dcc8676e1576;hpb=4477a87021ffbfbfdb2a2084d05a084171343d36;p=urcu.git diff --git a/include/urcu/static/urcu-mb.h b/include/urcu/static/urcu-mb.h index 0dd7d42..20e604d 100644 --- a/include/urcu/static/urcu-mb.h +++ b/include/urcu/static/urcu-mb.h @@ -91,10 +91,10 @@ static inline void _urcu_mb_read_lock(void) { unsigned long tmp; - urcu_assert(URCU_TLS(urcu_mb_reader).registered); + urcu_assert_debug(URCU_TLS(urcu_mb_reader).registered); cmm_barrier(); tmp = URCU_TLS(urcu_mb_reader).ctr; - urcu_assert((tmp & URCU_GP_CTR_NEST_MASK) != URCU_GP_CTR_NEST_MASK); + urcu_assert_debug((tmp & URCU_GP_CTR_NEST_MASK) != URCU_GP_CTR_NEST_MASK); _urcu_mb_read_lock_update(tmp); } @@ -118,7 +118,7 @@ static inline void _urcu_mb_read_unlock_update_and_wakeup(unsigned long tmp) } /* - * Exit an RCU read-side crtical section. Both this function and its + * Exit an RCU read-side critical section. Both this function and its * helper are smaller than 10 lines of code, and are intended to be * usable by non-LGPL code, as called out in LGPL. */ @@ -126,9 +126,9 @@ static inline void _urcu_mb_read_unlock(void) { unsigned long tmp; - urcu_assert(URCU_TLS(urcu_mb_reader).registered); + urcu_assert_debug(URCU_TLS(urcu_mb_reader).registered); tmp = URCU_TLS(urcu_mb_reader).ctr; - urcu_assert(tmp & URCU_GP_CTR_NEST_MASK); + urcu_assert_debug(tmp & URCU_GP_CTR_NEST_MASK); _urcu_mb_read_unlock_update_and_wakeup(tmp); cmm_barrier(); /* Ensure the compiler does not reorder us with mutex */ }