AndroidART垃圾回收暂停时间是主线程还是工作线程?

Android in ART garbage collection pause time indicates main thread or worker thread?

有人知道下面的 GC 日志 "paused 1.439ms" 是指 CMS 正在处理的后台线程暂停时间,还是主线程暂停时间?

I/art:后台粘性并发标记扫描 GC 释放了 266189(12MB) 个 AllocSpace 对象,0(0B) 个 LOS 对象,14% 空闲,46MB/54MB,暂停 1.439ms 总计 179.694m

提前致谢!!

A​​RT中有两种GC暂停:

1) 在下面的日志中 Explicit concurrent mark sweep GC 表示 foreground call.

I/art(801): Explicit concurrent mark sweep GC freed 65595(3MB) AllocSpace objects, 9(4MB) LOS objects, 810% free, 38MB/58MB, paused 1.195ms total 87.219ms

2) 在下面的日志中Background partial concurrent mark sweep GC and Background sticky concurrent mark sweep GC表示后台调用.

I/art(29197): Background partial concurrent mark sweep GC freed 74626(3MB) AllocSpace objects, 39(4MB) LOS objects, 1496% free, 25MB/32MB, paused 4.422ms total 1.371747s

I/art(29197): Background sticky concurrent mark sweep GC freed 70319(3MB) AllocSpace objects, 59(5MB) LOS objects, 825% free, 49MB/56MB, paused 6.139ms total 52.868ms

希望对您有所帮助!