I was wondering whether in Java there are any issues around inlining e.g. method calls, in the presence of memory barriers such as volatile reads/writes? Is the inlining explicitly not allowed in presence of memory barrier or the inlining has no effect on memory model?