...对象可以是强引用(strong references)、次引用(soft references)、弱引用(weak references)、虚引用(phantom references)的任意组合。为了确定对象的可获取程度,JVM内存管理器从引用集合出发遍寻堆中所有到对象的路径。
基于20个网页-相关网页
Weak, soft, and phantom references can improve the memory characteristics of your application by allowing flexible caching.
弱引用、软引用和虚引用允许灵活的缓存,能够改进应用程序的内存特性。
Weak and soft references both extend the abstract reference class (as do phantom references, which will be discussed in a future article).
弱引用和软引用都扩展了抽象的reference类(虚引用(phantom references)也一样,这将在以后的文章中介绍)。
Furthermore, an object in memory can be referenced by multiple references that could be strong, soft, weak, or phantom. Before proceeding further, let's look at some terminology.
而且,内存中的一个对象可以被多个引用(可以是强引用、软引用、弱引用或虚引用)引用。
应用推荐