diff options
author | ivmai <ivmai> | 2011-05-07 19:04:25 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:06:58 +0400 |
commit | 62c20c49fbad796c5d4b076000144e21a1261c65 (patch) | |
tree | 0506540bd84fbefd63ec41b63eacae00ad4be9f4 /blacklst.c | |
parent | 6fab260ad6dff7d60d5f94ec3b8994d6e7b23b3e (diff) | |
download | bdwgc-62c20c49fbad796c5d4b076000144e21a1261c65.tar.gz |
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 'blacklst.c')
-rw-r--r-- | blacklst.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -281,8 +281,7 @@ static word total_stack_black_listed(void) for (i = 0; i < GC_n_heap_sects; i++) { struct hblk * start = (struct hblk *) GC_heap_sects[i].hs_start; - size_t len = (word) GC_heap_sects[i].hs_bytes; - struct hblk * endp1 = start + len/HBLKSIZE; + struct hblk * endp1 = start + GC_heap_sects[i].hs_bytes/HBLKSIZE; total += GC_number_stack_black_listed(start, endp1); } |