全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Root set, reachable object, garbage?

又称: root set · reachable object · garbage

Definition 9.4 University Computer Science — Year 3 · 第 9 章 — Memory Management and Garbage Collection

The root set of a running program is the set of references it holds outside the heap: in its variables, its registers and its call stack. An object is reachable if a path of references leads to it from a root. A heap object that is not reachable is garbage: no future step of the program can read it.

在原文中阅读 →