Skip to content

Commit

Permalink
fix image element
Browse files Browse the repository at this point in the history
  • Loading branch information
yoa1226 committed Oct 21, 2024
1 parent 1bef910 commit 50b314b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-08-25-g1-gc-young-gc-root-scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ RawAccess<IS_NOT_NULL>::oop_store(p, forwardee);

如图,遍历 gc root2 时已经移动了对象,在遍历 gc root1 时只需要改变指针的值。

<image src="/assets/gc-young-gc-root-scan/g1-gc-ygc-gc-root-scan-copy-obj.png" width="60%">
<image src="/assets/gc-young-gc-root-scan/g1-gc-ygc-gc-root-scan-copy-obj.png" width="60%"/>

在对象 markword 中,最低两位为标志为,值为 `11` 时为 GC 标志。

Expand Down

0 comments on commit 50b314b

Please sign in to comment.