Offheap capacity check bug