Is Dalvik's memory model the same as Java's?

前端 未结 3 499
逝去的感伤
逝去的感伤 2020-11-28 23:58

Is Dalvik\'s memory model the same as Java\'s? I am particularly interested in whether reads and writes of reference and non-long/non-double primit

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 00:43

    The specification says that all operations on 32 bit numbers (the non-double, non-long numbers) are atomic. There is no guarantee that operations on 64 bit numbers are atomic as well.

提交回复
热议问题