ref: 2f5e8d6a9a76d8a51a5d33146913cde4530a6501
parent: 32f5a7c900bcc3b83d410cdc052c574f32ec349d
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Mar 21 18:41:42 EDT 2017
Give endcache a better name.
--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -194,7 +194,7 @@
const bigfree = {p, sz
var minsz, minp, minidx
- var endp, endcache
+ var endp, endblk
minp = p
minidx = -1
@@ -202,13 +202,13 @@
endp = ((p : intptr) + (sz : intptr) : byte#)
lock(memlck)
for var i = 0; i < cache.len; i++
- endcache = ((cache[i].p : intptr) + (sz : intptr) : byte#)
+ endblk = ((cache[i].p : intptr) + (sz : intptr) : byte#)
if cache[i].p == endp
cache[i].sz += sz
cache[i].p = p
minsz = 0
break
- elif endcache == p
+ elif endblk == p
cache[i].sz += sz
minsz = 0
break