最終更新:ID:D7J/gPk67w 2009年02月03日(火) 23:42:22履歴
/* Scan global roots for a minor collection */ void caml_scan_global_young_roots(scanning_action f)
{ struct global_root * gr;
caml_iterate_global_roots(f, &caml_global_roots);
caml_iterate_global_roots(f, &caml_global_roots_young);
/* Move young roots to old roots */
新世代のルートを、旧世代のルートに移動する。
for (gr = caml_global_roots_young.forward[0]; gr != NULL; gr = gr->forward[0]) { caml_insert_global_root(&caml_global_roots_old, gr->root);
} caml_empty_global_roots(&caml_global_roots_young);
}
タグ
コメントをかく