about dalvik's gc

96 views
Skip to first unread message

marianne

unread,
Jan 6, 2010, 12:25:07 AM1/6/10
to android-platform
Hi, All:
After reading almost all the source code about dalvik GC recently, I
am concerned that, though the GC uses the mark-sweep algorithm,
there is an object header defined in struct DvmHeapChunk which
contains the information of object generation , cited as follows:

typedef struct DvmHeapChunk {
#if WITH_OBJECT_HEADERS
......
u2 birthGeneration;
u2 markCount;
u2 scanCount;
u2 oldMarkGeneration;
u2 markGeneration;
u2 oldScanGeneration;
u2 scanGeneration;
.....

I also noticed that, the "birthGeneration" is actually
useless in this mark-sweep algorithm.
Does this imply that you are planning to improve the
current GC to a generational mark-sweep garbage collector?:-)
I hope my question is not reckless :P
Thank you for your help.

David Turner

unread,
Jan 6, 2010, 6:52:32 PM1/6/10
to android-...@googlegroups.com
Yes, the Dalvik GC is heavily being worked on as we speak. Of course, I can't give any ETA about availability of the next version.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




Reply all
Reply to author
Forward
0 new messages