usync icon indicating copy to clipboard operation
usync copied to clipboard

Fix barrier algorithm constants.

Open kprotty opened this issue 3 years ago • 0 comments

The COUNT_SHIFT was incorrectly 0 when it should have been 1 to shift out the QUEUED bit. This led to the initial barrier count being treated as a *const Waiter pointer and causing crashes/segfaults down the line. This PR also adds tests to make sure it's fixed.

kprotty avatar Jul 02 '22 04:07 kprotty