summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-11-23 20:28:54 -0800
committerOri Bernstein <ori@eigenstate.org>2017-11-23 20:28:54 -0800
commita805b85c6836bb909bd98e63ad2c05a58c814450 (patch)
tree9cef1f17f2e60a2007dfd5e7db22c615a64ef4bf
parent9430b39f7841e539a6ed8261a4eddb6eeb082e06 (diff)
downloadmc-a805b85c6836bb909bd98e63ad2c05a58c814450.tar.gz
zero out the data pointer in our big cache.
-rw-r--r--lib/std/alloc.myr1
-rw-r--r--lib/std/bytealloc.myr1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/alloc.myr b/lib/std/alloc.myr
index ac32ce5..cd0a6f9 100644
--- a/lib/std/alloc.myr
+++ b/lib/std/alloc.myr
@@ -6,6 +6,7 @@ use "threadhooks"
use "types"
use "units"
use "bytealloc"
+use "backtrace"
use "memops"
/*
diff --git a/lib/std/bytealloc.myr b/lib/std/bytealloc.myr
index adcad74..86f29cc 100644
--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -193,6 +193,7 @@ const bigalloc = {sz
cache[i].p = ((p : intptr) + (sz : intptr) : byte#)
else
cache[i].sz = 0
+ cache[i].p = (0 : byte#)
;;
break
;;