File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 130130
131131```
132132
133+ ```
134+ ┌────────┐ ┌───────┐
135+ │ │ │ │
136+ │ ▼ │ ▼
137+ │ ┌───┬───────────────────────────────────┐ │ ┌───┬───────────────────────────────────┐
138+ │ │ 1 │ gcBlackenEnabled -> 0 │ │ │ 1 │ mheap_.sweepdone -> 0 │
139+ │ ├───┼───────────────────────────────────┤ │ ├───┼───────────────────────────────────┤
140+ │ │ 2 │ gcphase -> _GCmarktermination │ │ │ 2 │ mheap_.pagesSwept -> 0 │
141+ │ ├───┼───────────────────────────────────┤ │ ├───┼───────────────────────────────────┤
142+ │ │ 3 │ mp.preemptoff = "gcing" │ │ │ 1 │ sweep.parked -> false │
143+ ┌───────────────────┐ │ ├───┼───────────────────────────────────┤ │ ├───┼───────────────────────────────────┤
144+ │ gcMarkTermination │──────┘ │ 4 │ g : running -> waiting │ │ │ 2 │ ready(sweep.g) │
145+ └───────────────────┘ ├───┼───────────────────────────────────┤ │ └───┴───────────────────────────────────┘
146+ │ 5 │ systemstack(gcMark) │ │
147+ ├───┼───────────────────────────────────┤ │
148+ │ 5 │ gcphase -> _GCoff │ │
149+ ├───┼───────────────────────────────────┤ │
150+ │ 5 │ gcSweep() │─────┘
151+ └───┴───────────────────────────────────┘
152+ ```
153+
133154## 初始化
134155
135156``` go
You can’t perform that action at this time.
0 commit comments