Android: the GC doesn't respect SoftReferences?

后端 未结 3 1922
悲哀的现实
悲哀的现实 2021-02-06 00:19

It seams that Dalvik\'s garbage collector doesn\'t respect SoftReferences and removes them as soon as possible, just like WeakReferences. I\'m not 100% sure yet, but despite the

3条回答
  •  温柔的废话
    2021-02-06 01:00

    @JBM I've tried your TestCase on Nexus S (android4.2.2), all tests are failed. GC is more aggressive against SoftReference on android4.2.2

提交回复
热议问题