diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-09-27 10:55:27 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-09-27 10:55:27 +0300 |
commit | 145c375f7423cd777cc0ef0effa38b64372efbda (patch) | |
tree | 08a0036ab9673bea1080ca9b684d112b67e4ccf4 /blacklst.c | |
parent | bcfcf4a9ccd9ef6f21fab5f2cb9cb05bc1afdb19 (diff) | |
download | bdwgc-145c375f7423cd777cc0ef0effa38b64372efbda.tar.gz |
Code refactoring of divide-by-HBLKSIZE occurrences
* alloc.c (GC_print_heap_sects): Replace "/HBLKSIZE" with divHBLKSZ.
* blacklst.c (total_stack_black_listed): Likewise.
Diffstat (limited to 'blacklst.c')
-rw-r--r-- | blacklst.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +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; - struct hblk * endp1 = start + GC_heap_sects[i].hs_bytes/HBLKSIZE; + struct hblk * endp1 = start + divHBLKSZ(GC_heap_sects[i].hs_bytes); total += GC_number_stack_black_listed(start, endp1); } |