I use Android L for some multi-threaded operations, using several ThreadPoolExecutors to start AsyncTasks queues.
When my application goes to the background, I start to see numerous magazines for ...
I/art: WaitForGcToComplete blocked for ##.#####ms for cause XXXXX
... with random ...
I/art: No such thread id for suspend: ### .
It seems obvious that something is happening that makes the GC longer than expected. The log is generated by art / runtime / gc / heap.cc deep in AOSP. The second log message indicates that it is probably related to my thread pools. It is unclear why this only happens (for example, when you log in) when the application is sent to the background.
I did not see any failures because of this, but I have a lot more tests to pass. Has anyone encountered issues matching these magazines?
garbage-collection android multithreading
Kevin
source share