summaryrefslogtreecommitdiff
path: root/headers.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-11-07 23:01:31 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-11-07 23:02:42 +0300
commit36a6d79e182861a70c53a604e36bb34a8bad7bd1 (patch)
tree3179bdb5ec7fe439ceb4fe6c96368b534cd955ea /headers.c
parent8dad87955e30b01bdae2a9b8eee2cbd7b321b482 (diff)
downloadbdwgc-36a6d79e182861a70c53a604e36bb34a8bad7bd1.tar.gz
Add comment about hbp overflow in GC_install_counts
(fix of commit 6a32bb4) Issue #245 (bdwgc). * headers.c (GC_install_counts): Better comment for the case of overflow.
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/headers.c b/headers.c
index 8267872d..462da89f 100644
--- a/headers.c
+++ b/headers.c
@@ -285,7 +285,7 @@ GC_INNER GC_bool GC_install_counts(struct hblk *h, size_t sz/* bytes */)
for (hbp = h; (word)hbp < (word)h + sz; hbp += BOTTOM_SZ) {
if (!get_index((word) hbp)) return(FALSE);
if ((word)hbp > (~(word)0) - (word)BOTTOM_SZ * HBLKSIZE)
- break; /* overflow */
+ break; /* overflow of hbp+=BOTTOM_SZ is expected */
}
if (!get_index((word)h + sz - 1)) return(FALSE);
for (hbp = h + 1; (word)hbp < (word)h + sz; hbp += 1) {