]> granicus.if.org Git - gc/commit
Fix last_reclaimed..gc_no interval comparison to threshold in unmap_old
authorIvan Maidanski <ivmai@mail.ru>
Sun, 14 Jan 2018 07:51:06 +0000 (10:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 14 Jan 2018 07:51:06 +0000 (10:51 +0300)
commitffe92c3e77cc29f543f6a54a6213c7f9191571f9
treeae99901a0bd2b10f9dc36e4f6da4e8bc1b19c587
parent0a58ccfa02b5b51a91f4d9797ef6932a3fba8cf9
Fix last_reclaimed..gc_no interval comparison to threshold in unmap_old
(fix commit 14c324f8b)

* allchblk.c [USE_MUNMAP] (GC_unmap_old): Replace
(unsigned short)GC_gc_no-hb_last_reclaimed to
(unsigned short)(GC_gc_no-hb_last_reclaimed) to handle
value wrapping in hb_last_reclaimed (and the truncated GC_gc_no)
correctly.
allchblk.c