未验证 提交 7c941a54 编写于 作者: D Dwade3 提交者: GitHub

Update Java 虚拟机.md

增加标记-整理算法的优缺点分析
上级 695989ba
......@@ -240,6 +240,14 @@ obj = null;
让所有存活的对象都向一端移动,然后直接清理掉端边界以外的内存。
优点:
- 不会产生内存碎片
不足:
- 在标记-清除的基础上还需进行对象的移动,成本相对较高
### 3. 复制
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/4_2001550547640585.png"/> </div><br>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册