Author: Armin Rigo <[email protected]>
Branch: heapcache-refactor
Changeset: r83112:bdc3859075cd
Date: 2016-03-17 15:54 +0100
http://bitbucket.org/pypy/pypy/changeset/bdc3859075cd/

Log:    test_heapcache passes again

diff --git a/rpython/jit/metainterp/test/test_heapcache.py 
b/rpython/jit/metainterp/test/test_heapcache.py
--- a/rpython/jit/metainterp/test/test_heapcache.py
+++ b/rpython/jit/metainterp/test/test_heapcache.py
@@ -695,6 +695,8 @@
 
     def test_bug_missing_ignored_operations(self):
         h = HeapCache()
+        box1 = RefFrontendOp(1)
+        box2 = RefFrontendOp(2)
         h.new(box1)
         h.new(box2)
         h.setfield(box1, box2, descr1)
@@ -717,6 +719,8 @@
         # calling some residual code that changes the values on box3: then
         # the content of box2 is still cached at the old value.
         h = HeapCache()
+        box1 = RefFrontendOp(1)
+        box2 = RefFrontendOp(2)
         h.new(box1)
         h.new(box2)
         h.setfield(box1, box2, descr1)
@@ -729,6 +733,8 @@
 
     def test_bug_heap_cache_is_cleared_but_not_is_unescaped_2(self):
         h = HeapCache()
+        box1 = RefFrontendOp(1)
+        box2 = RefFrontendOp(2)
         h.new(box1)
         h.new(box2)
         h.setfield(box1, box2, descr1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to