提交 a80c3086 authored 作者: Roy Xue's avatar Roy Xue

Fix some bug in ..gof/vm.py

上级 d1ad4a1e
...@@ -304,7 +304,7 @@ class Stack(VM): ...@@ -304,7 +304,7 @@ class Stack(VM):
idx = self.node_idx[node] idx = self.node_idx[node]
t0 = time.time() t0 = time.time()
rval = self.thunks[idx]() rval = self.thunks[idx]()
self.node_executed_order.append(idx) self.node_executed_order.append(node)
# Some thunks on some computers run faster than the granularity # Some thunks on some computers run faster than the granularity
# of the time.time clock. # of the time.time clock.
...@@ -509,7 +509,7 @@ class Stack(VM): ...@@ -509,7 +509,7 @@ class Stack(VM):
break break
if empty_storage_map: if empty_storage_map:
storage_map[i][0] = None storage_map[i][0] = None
self.node_cleared_order.append(storage_map[v]) self.node_cleared_order.append(storage_map[i])
#See the not lazy gc code for explanations #See the not lazy gc code for explanations
#of compute_map change #of compute_map change
compute_map[i][0] = 2 compute_map[i][0] = 2
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论