没有合适的资源?快使用搜索试试~ 我知道了~
Garbage_collection_2016011344_杨乐_953203041
需积分: 0 0 下载量 179 浏览量
2022-08-03
17:12:32
上传
评论
收藏 274KB PDF 举报
温馨提示
试读
11页
@ GC Langs: Java, C#, D, Go, most scripting languages// C++ : Require deallocate
资源详情
资源评论
资源推荐
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Introduction Features Strategy Implementation
Introduction
» Objects: Live or Dead?
@ Living Objects: Objects that are referenced
@ Dead Objects: Objects that are no longer referenced
» Garbage: All the dead objects
» Garbage Collection(GC): Find and reclaim all the garbage
- 杨乐 - Garbage Collection » 垃圾回收机制 «
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Introduction Features Strategy Implementation
Introduction
» GC vs Manual memory managment:
@ GC: Automatically collecting
@ Manually: require the programmer to specify which objects to
deallocate and return to the memory system
» Program Languages: GC or Not?
@ GC Langs: Java, C#, D, Go, most scripting languages
@ Not GC Langs: C, C++
// C++ : Require deallocate manually
int *p = new int(5);
delete p;
- 杨乐 - Garbage Collection » 垃圾回收机制 «
剩余10页未读,继续阅读
高工-老罗
- 粉丝: 20
- 资源: 314
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0