Possible Memory leak through FinalizerReference

前端 未结 2 1089
说谎
说谎 2021-01-17 10:06

I have a small android app and I tried looking for memory leaks, so I clicked \'Dump Java Heap\' and the first class on the list is FinalizerReference (java.lang.ref). It ha

2条回答
  •  无人及你
    2021-01-17 10:28

    For more details about your issue, look at the referent field of your Finalizer. Finalizer objects are just extended References, so you could investigate the content. It will give you information about the finalizing objects.

    Depending on the content, you will have new leads. It is possible that the finalization process for the pending objects is very long. As you have only one thread processing them all, you may be somehow finalizing more than you can.

    Cheers

提交回复
热议问题