diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-07 23:01:31 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-07 23:02:42 +0300 |
commit | 36a6d79e182861a70c53a604e36bb34a8bad7bd1 (patch) | |
tree | 3179bdb5ec7fe439ceb4fe6c96368b534cd955ea /headers.c | |
parent | 8dad87955e30b01bdae2a9b8eee2cbd7b321b482 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |