标记-清楚算法和标记整理算法的图片倒置了
This commit is contained in:
parent
50cca1399a
commit
b1f5cef30c
|
@ -220,7 +220,7 @@ obj = null;
|
|||
|
||||
### 1. 标记 - 清除
|
||||
|
||||
<div align="center"> <img src="pics/2_2001550547456403.png"/> </div><br>
|
||||
<div align="center"> <img src="pics/3_2001550547558008.png"/> </div><br>
|
||||
|
||||
标记要回收的对象,然后清除。
|
||||
|
||||
|
@ -231,7 +231,7 @@ obj = null;
|
|||
|
||||
### 2. 标记 - 整理
|
||||
|
||||
<div align="center"> <img src="pics/3_2001550547558008.png"/> </div><br>
|
||||
<div align="center"> <img src="pics/2_2001550547456403.png"/> </div><br>
|
||||
|
||||
让所有存活的对象都向一端移动,然后直接清理掉端边界以外的内存。
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user