Given the following code
var cachedInt = new ArrayBlockingQueue<Integer>(xxxxx);
while(true){
while(cachedInt.offer(randomProvider.nextInt()));
latch.await();
}
Will the jvm eventually eliminate the while loop because it has no body or does it recognize the side effect of the condition and keep the loop in place?