全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Reference counting?

又称: reference count

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

Reference counting stores in each object its reference count, the number of references to it held by variables and by other objects. Every copy of a reference increments the count of its target, every overwritten or discarded reference decrements it, and an object whose count reaches 0 is freed at once, decrementing the counts of the objects it refers to.

在原文中阅读 →