最佳答案
是的,根据JLS还有其他转换:
[The memory model] provides a great deal of freedom for the implementor to perform a myriad of code transformations, including the reordering of actions and removal of unnecessary synchronization.
只要遵守内存模型,编译器实现就可以执行任何转换。
关于java - Java 编译器的转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42426543/