Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac483fc

Browse filesBrowse files
committed
[F] 图片
1 parent 85517ab commit ac483fc
Copy full SHA for ac483fc

File tree

Expand file treeCollapse file tree

2 files changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎note/JDK/深入学习Java volatile关键字.md‎

Copy file name to clipboardExpand all lines: note/JDK/深入学习Java volatile关键字.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ d = 4; //语句五
9696
**volatile内存语义的底层实现原理——内存屏障**
9797

9898
为了实现volatile的内存语义,编译期在生成字节码时,会在指令序列中插入内存屏障来禁止特定类型的处理器重排序。下图看看JMM针对编译期指定的volatile重排序的规则表:
99-
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-nUC08aj9-1596181331578)(https://note.youdao.com/yws/api/personal/file/2DB4A9DDE8D243E680668BEDA1EA931D?method=download&shareKey=03684bd761521c57dfea00548eadeb15)]
99+
![volatile-04](https://github.com/coderbruis/JavaSourceCodeLearning/blob/master/note/images/JDK/volatile-04.png)
100100
就上面的图标,是什么含义呢?
101101
举例来说,
102102

Collapse file

‎note/images/JDK/volatile-04.png‎

Copy file name to clipboard
89.7 KB
  • Display the source diff
  • Display the rich diff
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.