summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-07 21:04:25 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:58 +0200
commit62c20c49fbad796c5d4b076000144e21a1261c65 (patch)
tree0506540bd84fbefd63ec41b63eacae00ad4be9f4 /reclaim.c
parent6fab260ad6dff7d60d5f94ec3b8994d6e7b23b3e (diff)
2011-05-07 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_clear_a_few_frames): Use BZERO(). * mark_rts.c (GC_clear_roots, GC_rebuild_root_index): Ditto. * reclaim.c (GC_start_reclaim): Ditto. * blacklst.c (total_stack_black_listed): Remove "len" local variable. * dbg_mlc.c (GC_generate_random_valid_address): Replace "for" statement with "do-while" one. * dyn_load.c (GC_register_dynamic_libraries, GC_register_dynlib_callback): Remove redundant parentheses.
Diffstat (limited to 'reclaim.c')
-rw-r--r--reclaim.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/reclaim.c b/reclaim.c
index c9e8e53..68dd1b9 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -511,8 +511,6 @@ GC_INNER void GC_start_reclaim(GC_bool report_if_found)
for (kind = 0; kind < GC_n_kinds; kind++) {
void **fop;
void **lim;
- struct hblk ** rlp;
- struct hblk ** rlim;
struct hblk ** rlist = GC_obj_kinds[kind].ok_reclaim_list;
GC_bool should_clobber = (GC_obj_kinds[kind].ok_descriptor != 0);
@@ -530,10 +528,7 @@ GC_INNER void GC_start_reclaim(GC_bool report_if_found)
}
} /* otherwise free list objects are marked, */
/* and its safe to leave them */
- rlim = rlist + MAXOBJGRANULES+1;
- for( rlp = rlist; rlp < rlim; rlp++ ) {
- *rlp = 0;
- }
+ BZERO(rlist, (MAXOBJGRANULES + 1) * sizeof(void *));
}