Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tiechui1994 committed May 12, 2024
1 parent 5a09c95 commit 52534de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion develop/memory/gc_barrier.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Go 垃圾扫描时, 为了更快, 需要业务与扫描并发进行, 这时候

**内存屏障本质是什么?**

**1) 内存屏障只是对应一段特殊的代码, 该代码是咋编译期间生成**
**1) 内存屏障只是对应一段特殊的代码, 该代码是在编译期间生成**

**2) 内存屏障本质上是在运行期间拦截内存写操作, 相当于一个 hook 调用**

Expand Down
2 changes: 1 addition & 1 deletion udp/udp.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Linux 当中可以通过设置 socket 的 SO_REUSEADDR 和 SO_REUSEPORT 来启

### Go 当中端口重用实现

```
```cgo
func Control(network, address string, c syscall.RawConn) error {
var err error
c.Control(func(fd uintptr) {
Expand Down

0 comments on commit 52534de

Please sign in to comment.