Skip to content

Commit f3316b8

Browse files
author
wziww
authored
Merge branch 'cch123:master' into master
2 parents 56e5fed + 7d8fbb8 commit f3316b8

28 files changed

+121
-21
lines changed

assembly.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -999,11 +999,5 @@ go compile -S:
999999
参考资料[4]需要特别注意,在该 slide 中给出的 callee stack frame 中把 caller 的 return address 也包含进去了,个人认为不是很合适。
10001000
10011001
1002+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">
10021003
1003-
1004-
<!--stackedit_data:
1005-
eyJoaXN0b3J5IjpbMTIzMjkyMzE1MSwtMjY3MTA3MzkxLDEyMz
1006-
I5MjMxNTEsLTg4Mjc1MTcwNiwtMTc0OTAxODUyMiwtMzQ4MTA0
1007-
NjIzLDIwODQwNjM3MjAsLTE1NTYyODU0NDAsMTI2MTcwMTYyMy
1008-
w3NTI0MDk2NTUsMTg4NDQ5NTE5MF19
1009-
-->

atomic.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,6 @@ TEXT runtime∕internal∕atomic·Store(SB), NOSPLIT, $0-12
359359
MOVL val+8(FP), AX
360360
XCHGL AX, 0(BX) // 交换指令
361361
RET
362-
```
362+
```
363+
364+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

bootstrap.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,4 +518,6 @@ func main() {
518518
<!--stackedit_data:
519519
eyJoaXN0b3J5IjpbOTA1MjAxMjAyLC0xNDUzNjA2MjEwLDkwNT
520520
IwMTIwMiwtMTQ1MzYwNjIxMCwtNTk2NzUzMDMxXX0=
521-
-->
521+
-->
522+
523+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

channel.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,3 +705,6 @@ func closechan(c *hchan) {
705705
Q: 如果有多个channel同时唤醒同一个goroutine,这个并发控制是怎么做的?
706706

707707
Q: 为什么向 channel 发数据的时候,会直接把数据从一个 goroutine 的栈拷贝到另一个 goroutine 的栈?
708+
709+
710+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

context.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,3 +566,5 @@ func main() {
566566
# 总结
567567

568568
ctx 的结构显然是根据代码的执行模型来设计的,虽然设计得比较巧妙,但因为将取消和上下文携带功能混合在一起,在一些情况下还是会给我们埋些比较隐蔽的坑。使用时需要多多注意。
569+
570+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

defer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ A: deferproc 和 deferreturn 是成对出现的,对于编译器的实现来说
160160

161161
https://ieevee.com/tech/2017/11/23/go-panic.html
162162

163+
164+
165+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

futex.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,6 @@ http://blog.sina.com.cn/s/blog_e59371cc0102v29b.html
235235
https://www.jianshu.com/p/570a61f08e27
236236

237237
https://eli.thegreenplace.net/2018/basics-of-futexes/
238+
239+
240+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

gc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,3 +742,5 @@ gc时间,stw时间和响应延迟之间是什么关系
742742

743743
宏观来看gc划分为多少个阶段
744744

745+
746+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

gc_write_barrier.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# GC write barrier 详解
2+
3+
TODO
4+
5+

generics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ cat source.go | genny gen "Something=string"
4040

4141
没有官方的泛型支持,社区怎么搞都是邪道。2021 年 1 月,官方的方案已经基本上成型,并释出了 [draft design](https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md)
4242

43+
44+
<img width="330px" src="https://xargin.com/content/images/2021/05/wechat.png">

0 commit comments

Comments
 (0)