Skip to content

Commit

Permalink
Update volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
kobesjava authored May 14, 2020
1 parent b3cb32e commit 3f025dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/volatile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ volatile
2.禁止指令重排序 DCL(jvm要求底层loadfence原语 storefence原实现)

hotspot底层实现 非常懒 直接lock
https://github.com/kobesjava/note/blob/master/image/volatile1.png

CPU的实现
1.最粗暴 锁总线
Expand Down

0 comments on commit 3f025dc

Please sign in to comment.