With_OBJECT_HEADERS 是否启用了来自 Dalvik 的 GC?
据我所知,Dalvik VM 默认不支持分代 GC。
但是,我发现“WITH_OBJECT_HEADERS
”编译标志可能与 HeapInternal.h
文件中的分代 GC 有关。
typedef struct DvmHeapChunk {
#if WITH_OBJECT_HEADERS
u4 header;
const Object *parent;
const Object *parentOld;
const Object *markFinger;
const Object *markFingerOld;
u2 birthGeneration;
u2 markCount;
u2 scanCount;
u2 oldMarkGeneration;
u2 markGeneration;
u2 oldScanGeneration;
u2 scanGeneration;
#endif
有人尝试在启用此选项的情况下构建 Dalvik 吗?您了解 Dalvik 的分代 GC 支持吗?
As I know Dalvik VM does not support generational GC as default.
But, I found "WITH_OBJECT_HEADERS
" compilation flag which could be related with generational GC from HeapInternal.h
file.
typedef struct DvmHeapChunk {
#if WITH_OBJECT_HEADERS
u4 header;
const Object *parent;
const Object *parentOld;
const Object *markFinger;
const Object *markFingerOld;
u2 birthGeneration;
u2 markCount;
u2 scanCount;
u2 oldMarkGeneration;
u2 markGeneration;
u2 oldScanGeneration;
u2 scanGeneration;
#endif
Does anyone try to build Dalvik with this option enabled? Do you know anything about generational GC support from Dalvik?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是实验的一部分。当前版本不支持分代 GC。 GC 的改进将成为未来版本的一部分。
This was part of an experiment. There is no generational GC support in the current release. Improvements to the GC will be part of a future release.