It then traverses the chain of references until all (directly or indirectly) reachable objects from the root set are marked.
跟踪然后遍历引用链直至标记完根集中所有(直接或间接)可获得的对象。
For example, it is not necessary to track stores to local or static variables, because they will already be part of the root set.
例如,不需要跟踪针对本地或者静态变量的存储,因为它们已经是根集的一部分了。
This tracing starts with the root set, which consists of internal structures such as thread stacks and global references to objects.
这个跟踪以根集开始,它由一些内部结构组成,比如线程栈和对象的全局引用。
The blue arrows represent references to old objects, either from the root set or from the young generation, which don't need to be traced when collecting only the young generation.
蓝色箭头表示从根集或者年轻代到老对象的引用,在只收集年轻代时不需要跟踪它们。
In this paper, three heuristic rules were brought forward for obtaining a centroid vector corresponding to a root set.
本文给出三种启发式规则用于获取根集文档的质心向量。
An object will not be garbage collected as long as there is a path of references from an object in the root set to the object in question.
只要根集中的对象到讨论中的对象之间存在引用路径,对象便不会被垃圾回收。
If no such path to the root set exists for an object, it is called unreachable and will be collected (deleted) the next time the garbage collector is ran.
如对象到根集的此路径不存在,它便会被识别为无法达到,垃圾回收器下次运行时便会将其收集(删除)。
Objects that are unmarked at the end of the mark phase are unreachable by the application (dead) because there's no path from the root set through any series of references to find them.
标记阶段最后也没有标记的对象是应用程序不可获得的对象(死对象),因为不存在从根集经过任何引用序列找到这些对象的路径。
A generational tracing collector starts from the root set, but does not traverse references that lead to objects in the older generation, which reduces the size of the object graph to be traced.
分代跟踪收集器从根集开始,但是并不遍历指向更老一代中对象的引用,这减少了要跟踪的对象图的大小。
To address this problem, generational collectors must explicitly track references from older objects to younger objects and add these old-to-young references into the root set of the minor collection.
为了解决这个问题,分代收集器必须显式地跟踪从老对象到年轻对象的引用并将这些老到年轻的引用加入到小的收集的根集中。
To address this problem, generational collectors must explicitly track references from older objects to younger objects and add these old-to-young references into the root set of the minor collection.
为了解决这个问题,分代收集器必须显式地跟踪从老对象到年轻对象的引用并将这些老到年轻的引用加入到小的收集的根集中。
应用推荐