CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2019/02/24 21:50:25

Modified files:
        sys/kern       : kern_lock.c 

Log message:
Fix memory barrier in __mtx_leave(). membar_exit_before_atomic() cannot
be used in the routine because there is no subsequent atomic operation.
membar_exit() has to be used instead.

The mistake has not caused problems because on most platforms
membar_exit_before_atomic() is membar_exit(). Only amd64 and i386 have
a dedicated membar_exit_before_atomic(), and their exit barriers are
no-ops.

OK dlg@

Reply via email to