Improved barrier performance by making it a pointer.