Reputation: 21
Is this statement correct ? "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" Any one can explain ? garbage collector in android 2.3
Thanks a lot.
Upvotes: 0
Views: 1120
Reputation: 967
As I know, there are two GC modes in the dalvikvm. One is ConcurrentMarkSweep and the other is Copying.
Only one mode will be compiled in the run time.
And the default mode is the concurrent mark sweep GC. The concurrent is only used in gc mark sweep step. And in GC process, the full steps are:
Upvotes: 1