简体   繁体   中英

garbage collector in android 2.3

From the Google groups I came to know that android 2.3 is using concurrent garbage collector. 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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