shithub: mc

Download patch

ref: 9430b39f7841e539a6ed8261a4eddb6eeb082e06
parent: 75162b207cf3012bfa26d064787026bb044ad220
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Nov 21 06:39:04 EST 2017

Don't evict when merging.

--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -226,11 +226,13 @@
 			cache[i].sz += sz
 			cache[i].p = p
 			evictidx = -1
+			evictsz = 0
 			break
 		/* merge in behind existing block */
 		elif endblk == p
 			cache[i].sz += sz
 			evictidx = -1
+			evictsz = 0
 			break
 		;;
 		/* evict */