Skip to content

Commit

Permalink
expand image size
Browse files Browse the repository at this point in the history
  • Loading branch information
yoa1226 committed Oct 21, 2024
1 parent c181349 commit 3a44e69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _posts/2024-08-25-g1-gc-young-gc-root-scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ virtual void work(uint worker_id) {
}
```
<image src="/assets/gc-young-gc-root-scan/g1-gc-ygc-rset-scan.png" width = "80%"/>
<image src="/assets/gc-young-gc-root-scan/g1-gc-ygc-rset-scan.png" width = "100%"/>
这里主要逻辑都在 `G1MergeCardSetClosure` 里面,它主要做了三件事情。
Expand Down Expand Up @@ -187,7 +187,7 @@ class G1MergeCardSetClosure : public G1HeapRegionClosure {

`scan_state->set_chunk_dirty`对 card index 进行压缩,64 个 card组成一个 chunk。相当于对 dirty card 分层,添加了一层索引,后续可以看到对

<image src="/assets/gc-young-gc-root-scan/g1-gc-young-gc-root-scan-chunk.png" width="80%"/>
<image src="/assets/gc-young-gc-root-scan/g1-gc-young-gc-root-scan-chunk.png" width="90%"/>

## scan root

Expand Down Expand Up @@ -641,7 +641,7 @@ class G1CardTableChunkClaimer {
}
```
<image src="/assets/gc-young-gc-root-scan/g1-gc-young-gc-root-scan-chunk.png" width="80%"/>
<image src="/assets/gc-young-gc-root-scan/g1-gc-young-gc-root-scan-chunk.png" width="90%"/>
`_region_scan_chunks` 在遍历记忆集的时候初始化后, 用于加快查找。
Expand Down

0 comments on commit 3a44e69

Please sign in to comment.