0

holding references to Remote objects and using them in loops. And then found that native HEAP continued to grow

I thought the system would auto gc, but it didn't

example:

fun test() {
  remote.call(object: ICallback.Stub {
                override fun onCall(available: Boolean) {
                    .........
                }
})
}

loop invoke test()

May
  • 1
  • uhm I have to admit that I'm not so expert in AIDL but I had some issues with Android GC and I learned on my own that you cannot guess when GC is invoked... – weirdgyn Mar 17 '23 at 15:38

0 Answers0