bool dvmHeapBeginMarkStep(GcMode mode) { GcMarkContext *ctx = &gDvm.gcHeap->markContext; if (!createMarkStack(&ctx->stack)) { return false; } ctx->finger = NULL; ctx->immuneLimit = dvmHeapSourceGetImmuneLimit(mode); return true; }
bool dvmHeapBeginMarkStep(bool isPartial) { GcMarkContext *ctx = &gDvm.gcHeap->markContext; if (!createMarkStack(&ctx->stack)) { return false; } ctx->finger = NULL; ctx->immuneLimit = (char*)dvmHeapSourceGetImmuneLimit(isPartial); return true; }