概要

引数

  • f: コールバックする関数へのポインタ。

戻り値


なし。

実装



/* 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);

}
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

管理人/副管理人のみ編集できます