According the java.lang.ref, the soft reference, weak reference and phantom reference can expect the gc's specific action after the above type's object is ready to be reclaimed by gc. basically, the strong reference can not guarantee what action gc will take in JAVA.
To some extent, the new reference type may be the remedy to the existed mechanism of gc and JAVA application.
Subscribe to:
Post Comments (Atom)


2 comments:
When will this technique be used as a remedy?
now, it has been available.
Post a Comment