AtomicInteger implementation and code duplication

后端 未结 5 707
眼角桃花
眼角桃花 2021-02-12 17:00

Warning: the question is a little long, but the part below the separation line is for curiosity only.

Oracle\'s JDK 7 implementation of AtomicInteger includes t

5条回答
  •  情深已故
    2021-02-12 17:25

    The reason is that they preferred to make code faster, in expense of code size.

    I am sure, the sources are real. If they were intrinsics, they would be marked as native.

提交回复
热议问题