Are hoisting and reordering the same thing?

前端 未结 3 622
北海茫月
北海茫月 2020-12-09 05:14

I read from Effective Java that In the absence of synchronization the following sequence A below can be converted into sequence B by the virtual machine and this is called <

3条回答
  •  春和景丽
    2020-12-09 05:50

    Reordering relates to performance of execution where as reordering doesn't impact performance.

    Hoisting is done to reordering of Memory barrier instructions.

提交回复
热议问题