今天看 E:\folder\vendor\rockchip\xxxxx\apps\SystemUI\src\com\android\systemui\recents\RecentsActivity.java,发现:
// Force a gc to attempt to clean up bitmap references more quickly (b/38258699)
Recents.getSystemServices().gc();
还能这样强制 gc?
在查看Android系统源代码时,发现了一种强制垃圾回收(GC)的方法。通过调用RecentsActivity中的getSystemServices().gc()方法,可以触发垃圾回收机制,加快bitmap资源的清理速度。
719

被折叠的 条评论
为什么被折叠?



