about summary refs log tree commit diff stats
path: root/074wait.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-06-24 09:16:17 -0700
committerKartik Agaram <vc@akkartik.com>2018-06-24 09:18:20 -0700
commit23d3a02226973f80188e84fa5dcedb14413c5b7f (patch)
tree3c73284cb795e74d78e53b72df470cafca4c70cf /074wait.cc
parent377b00b045289a3fa8e88d4b2f129d797c687e2f (diff)
downloadmu-23d3a02226973f80188e84fa5dcedb14413c5b7f.tar.gz
4266 - space for alloc-id in heap allocations
This has taken me almost 6 weeks :(
Diffstat (limited to '074wait.cc')
-rw-r--r--074wait.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/074wait.cc b/074wait.cc
index eb17c8aa..aa3b59af 100644
--- a/074wait.cc
+++ b/074wait.cc
@@ -262,22 +262,20 @@ def main [
 :(scenario get_location_indirect)
 # 'get-location' can read from container address
 def main [
-  1:num <- copy 10
-  10:num <- copy 34
-  11:num <- copy 35
-  4:location <- get-location 1:&:point/lookup, 0:offset
+  1:num/alloc-id, 2:num <- copy 0, 10
+  10:num/alloc-id, 11:num/x, 12:num/y <- copy 0, 34, 35
+  20:location <- get-location 1:&:point/lookup, 0:offset
 ]
-+mem: storing 10 in location 4
++mem: storing 11 in location 20
 
 :(scenario get_location_indirect_2)
 def main [
-  1:num <- copy 10
-  10:num <- copy 34
-  11:num <- copy 35
-  4:&:num <- copy 20/unsafe
+  1:num/alloc-id, 2:num <- copy 0, 10
+  10:num/alloc-id, 11:num/x, 12:num/y <- copy 0, 34, 35
+  4:num/alloc-id, 5:num <- copy 0, 20
   4:&:location/lookup <- get-location 1:&:point/lookup, 0:offset
 ]
-+mem: storing 10 in location 20
++mem: storing 11 in location 21
 
 //: allow waiting on a routine to complete