引用队列,在检测到适当的可访问性变化后,通过垃圾收集器将已注册的引用对象加入。
Reference queues, to which registered reference objects are appended by the garbage collector after the appropriate reachability changes are detected.
TGC通过最小化垃圾收集器的成本来为JVM上运行的应用程序提供最好的开箱即用流量。
The TGC provides the best out-of-box throughput for applications running on a JVM by minimizing costs of the garbage collector.
那些支持析构函数或垃圾收集器的语言通过在C接口上作一层封装有助于降低这个问题发生的概率。
Programming languages that support destructors or have a garbage collector may mitigate this problem by making a wrapper over the C interface.
与弱引用一样,软引用通过利用垃圾收集器在作出缓存回收决策方面的帮助,有助于防止应用程序出现对象游离。
Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions.
通过这种方式,垃圾收集器将获得更多空间并减少完全GC的可能性。
This way, the garbage collector will obtain more breathing space, decreasing the probability of a full GC.
通过这种方式,垃圾收集器将获得更多空间并减少完全GC的可能性。
This way, the garbage collector will obtain more breathing space, decreasing the probability of a full GC.
应用推荐