correctly handle the degenerate barrier in the pshared case