summaryrefslogtreecommitdiff
path: root/blacklst.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-09-27 10:55:27 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-09-27 10:55:27 +0300
commit145c375f7423cd777cc0ef0effa38b64372efbda (patch)
tree08a0036ab9673bea1080ca9b684d112b67e4ccf4 /blacklst.c
parentbcfcf4a9ccd9ef6f21fab5f2cb9cb05bc1afdb19 (diff)
downloadbdwgc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blacklst.c b/blacklst.c
index dcac51a7..d080944e 100644
--- a/blacklst.c
+++ b/blacklst.c
@@ -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);
}