Lines Matching refs:gc_mode
163 int gc_mode = (gc_type == BG_GC) ? GC_CB : GC_GREEDY; in select_gc_type() local
166 return gc_mode; in select_gc_type()
170 gc_mode = GC_CB; in select_gc_type()
172 gc_mode = GC_GREEDY; in select_gc_type()
175 gc_mode = GC_GREEDY; in select_gc_type()
176 return gc_mode; in select_gc_type()
185 p->gc_mode = GC_GREEDY; in select_policy()
190 p->gc_mode = select_gc_type(sbi->gc_thread, gc_type); in select_policy()
207 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy()
216 if (p->gc_mode == GC_GREEDY) in get_max_cost()
218 else if (p->gc_mode == GC_CB) in get_max_cost()
286 if (p->gc_mode == GC_GREEDY) in get_gc_cost()
341 last_victim = sm->last_victim[p.gc_mode]; in get_victim_by_default()
354 if (sm->last_victim[p.gc_mode]) { in get_victim_by_default()
356 sm->last_victim[p.gc_mode]; in get_victim_by_default()
357 sm->last_victim[p.gc_mode] = 0; in get_victim_by_default()
392 if (!sm->last_victim[p.gc_mode] && segno <= last_victim) in get_victim_by_default()
393 sm->last_victim[p.gc_mode] = last_victim + 1; in get_victim_by_default()
395 sm->last_victim[p.gc_mode] = segno + 1; in get_victim_by_default()
396 sm->last_victim[p.gc_mode] %= MAIN_SEGS(sbi); in get_victim_by_default()