Reference Objects and Garbage Collection
The Reference Object application programming interface (API) is new in the Java Development Kit (JDK) 1.2. This API allows a program to maintain special references to objects that allow the program to interact with the garbage collector in limited ways. Not all programs require this level of interaction with the garbage collector. For example, a program that keeps a lot of objects in memory or a program that needs to perform cleanup operations on related objects before an object is reclaimed might be good candidates for using the Reference Objects API.
Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine
Java开发工具包JDK 1.2引入了引用对象应用程序编程接口(API),该API可让程序与垃圾回收器进行有限交互。并非所有程序都需要这种交互,比如内存中保留大量对象或需在对象回收前对相关对象执行清理操作的程序,适合使用该API。

被折叠的 条评论
为什么被折叠?



