与弱引用一样,软引用通过利用垃圾收集器在作出缓存回收决策方面的帮助,有助于防止应用程序出现对象游离。
Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions.
当数组用于实现诸如堆栈或环形缓冲区之类的数据结构时,会出现另一种形式的对象游离。
Another form of object loitering arises when arrays are used to implement data structures such as stacks or circular buffers.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
本文以不同加工阶段南京板鸭的腿肌为研究对象,探索了加工过程中小肽和游离氨基酸的变化规律。
Cured-dry duck samples of different processing phases were used to study the changes of peptides and free-amino acids by HPLC in this paper.
所有研究对象测定常规临床检查项目、血糖、胰岛素和游离脂肪酸。
To measure convention inspection item of clinical, plasma glucose, serum insulin and free fatty acids concentrations.
所有研究对象测定常规临床检查项目、血糖、胰岛素和游离脂肪酸。
To measure convention inspection item of clinical, plasma glucose, serum insulin and free fatty acids concentrations.
应用推荐