diff options
Diffstat (limited to 'asmrun')
-rw-r--r-- | asmrun/.cvsignore | 33 | ||||
-rw-r--r-- | asmrun/roots.c | 15 |
2 files changed, 41 insertions, 7 deletions
diff --git a/asmrun/.cvsignore b/asmrun/.cvsignore new file mode 100644 index 000000000..ee21b3599 --- /dev/null +++ b/asmrun/.cvsignore @@ -0,0 +1,33 @@ +main.c +misc.c +freelist.c +major_gc.c +minor_gc.c +memory.c +alloc.c +array.c +compare.c +ints.c +floats.c +str.c +io.c +extern.c +intern.c +hash.c +sys.c +parsing.c +gc_ctrl.c +terminfo.c +md5.c +obj.c +lexing.c +printexc.c +callback.c +weak.c +compact.c +finalise.c +custom.c +meta.c +globroots.c +unix.c +dynlink.c diff --git a/asmrun/roots.c b/asmrun/roots.c index e818e91ec..a1eb34805 100644 --- a/asmrun/roots.c +++ b/asmrun/roots.c @@ -97,7 +97,8 @@ value * caml_gc_regs; long caml_globals_inited = 0; static long caml_globals_scanned = 0; -/* Call [oldify] on (at least) all the roots that point to the minor heap. */ +/* Call [oldify_one] on (at least) all the roots that point to the minor + heap. */ void oldify_local_roots (void) { char * sp; @@ -118,7 +119,7 @@ void oldify_local_roots (void) i++) { glob = caml_globals[i]; for (j = 0; j < Wosize_val(glob); j++){ - oldify(Field(glob, j), &Field(glob, j)); + oldify_one (Field(glob, j), &Field(glob, j)); } } caml_globals_scanned = caml_globals_inited; @@ -146,7 +147,7 @@ void oldify_local_roots (void) } else { root = (value *)(sp + ofs); } - oldify(*root, root); + oldify_one (*root, root); } /* Move to next frame */ #ifndef Stack_grows_upwards @@ -178,18 +179,18 @@ void oldify_local_roots (void) for (i = 0; i < lr->ntables; i++){ for (j = 0; j < lr->nitems; j++){ root = &(lr->tables[i][j]); - oldify (*root, root); + oldify_one (*root, root); } } } /* Global C roots */ for (gr = caml_global_roots.forward[0]; gr != NULL; gr = gr->forward[0]) { - oldify(*(gr->root), gr->root); + oldify_one (*(gr->root), gr->root); } /* Finalised values */ - final_do_young_roots (&oldify); + final_do_young_roots (&oldify_one); /* Hook */ - if (scan_roots_hook != NULL) (*scan_roots_hook)(oldify); + if (scan_roots_hook != NULL) (*scan_roots_hook)(oldify_one); } /* Call [darken] on all roots */ |