Changing ring to force next power of two instead of throwing an exception
Removing uncessary volatile read during poll