Hi,
You're right that Avian treats SoftReferences as if they were
WeakReferences, but that seems to be within the scope of the
documentation:
"All soft references to softly-reachable objects are guaranteed to
have been cleared before the virtual machine throws an
OutOfMemoryError. Otherwise no constraints are placed upon the time at
which a soft reference will be cleared or the order in which a set of
such references to different objects will be cleared. Virtual machine
implementations are, however, encouraged to bias against clearing
recently-created or recently-used soft references." (from
https://docs.oracle.com/javase/7/docs/api/java/lang/ref/SoftReference.html).
Avian doesn't "bias against clearing recently-created or recently-used
soft references", but that's an optional feature.
Can you provide a specific, runnable test case illustrating how
PhantomReference is misbehaving?
Cheers,
Joel
> --
> You received this message because you are subscribed to the Google Groups
> "Avian" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
avian+un...@googlegroups.com.
> To post to this group, send email to
av...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/avian.
> For more options, visit
https://groups.google.com/d/optout.