简体   繁体   English

android 2.3中的垃圾收集器

[英]garbage collector in android 2.3

From the Google groups I came to know that android 2.3 is using concurrent garbage collector. 从谷歌小组我开始知道android 2.3正在使用并发垃圾收集器。 From the source code i can see that it uses both copying collector as well as mark and sweep, my question is whether the concurrency has been implemented in mark and sweep GC or in copying GC.please help me soon in this 从源代码我可以看到它同时使用复制收集器以及标记和扫描,我的问题是在标记和扫描GC中还是在复制GC时是否实现了并发性。请尽快帮助我

By default concurrency means, concurrent mark and sweep garbage collector only. 默认情况下,并发意味着只有并发标记和清除垃圾收集器。 So in android 2.3 concurrent mark and sweep is used for stack related objects treating everything as pointer and copying garbage collection is used for the objects in the heap. 所以在android 2.3中,并发标记和扫描用于堆栈相关对象,将所有内容视为指针,复制垃圾收集用于堆中的对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM