projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ac137
)
Fix hb_n_marks underflow in clear_fl_marks if MARK_BIT_PER_OBJ
author
Ivan Maidanski
<ivmai@mail.ru>
Sat, 19 Aug 2017 15:22:37 +0000
(18:22 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Sat, 19 Aug 2017 15:22:37 +0000
(18:22 +0300)
Issue #177 (bdwgc).
* mark.c [MARK_BIT_PER_OBJ] (GC_set_hdr_marks): Set hhdr->hb_n_marks
exactly to n_marks value (without a decrement by one).
mark.c
patch
|
blob
|
history
diff --git
a/mark.c
b/mark.c
index
33f2fba
..
0fba5b8
100644
(file)
--- a/
mark.c
+++ b/
mark.c
@@
-166,7
+166,7
@@
GC_INNER void GC_set_hdr_marks(hdr *hhdr)
}
# endif
# ifdef MARK_BIT_PER_OBJ
- hhdr -> hb_n_marks = n_marks
- 1
;
+ hhdr -> hb_n_marks = n_marks;
# else
hhdr -> hb_n_marks = HBLK_OBJS(sz);
# endif