Github user michaelandrepearce commented on the issue:
https://github.com/apache/activemq-artemis/pull/2396
Another thing ive noticed is currently where validBuffer is changed its not
protected its only volatile, so you could enter syncronized method do the
validBuffer check, but then subsequently because the validBuffer isn't
protected it could change, before you exit the synced method.---
