[pypy-commit] pypy invalidate-virtualrefs: kill this test, which is not supposed to work now; also, fix test_simple_force_sometimes, which now allocates less
antocuni
noreply at buildbot.pypy.org
Thu May 26 16:01:40 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: invalidate-virtualrefs
Changeset: r44518:a02e8e2b7c7d
Date: 2011-05-26 15:57 +0200
http://bitbucket.org/pypy/pypy/changeset/a02e8e2b7c7d/
Log: kill this test, which is not supposed to work now; also, fix
test_simple_force_sometimes, which now allocates less
diff --git a/pypy/jit/metainterp/test/test_virtualref.py b/pypy/jit/metainterp/test/test_virtualref.py
--- a/pypy/jit/metainterp/test/test_virtualref.py
+++ b/pypy/jit/metainterp/test/test_virtualref.py
@@ -319,8 +319,8 @@
#
res = self.meta_interp(f, [30])
assert res == 13
- self.check_loops(new_with_vtable=2, # the vref, XY() at the end
- new_array=0) # but not next1/2/3
+ self.check_loops(new_with_vtable=1, # the vref, but not XY()
+ new_array=0) # and neither next1/2/3
self.check_loop_count(1)
self.check_aborted_count(0)
@@ -415,36 +415,6 @@
new_array=2) # bridge: next4, next5
self.check_aborted_count(0)
- def test_access_vref_later(self):
- myjitdriver = JitDriver(greens = [], reds = ['n'])
- #
- class XY:
- pass
- class ExCtx:
- pass
- exctx = ExCtx()
- #
- @dont_look_inside
- def g():
- return exctx.later().n
- #
- def f(n):
- while n > 0:
- myjitdriver.can_enter_jit(n=n)
- myjitdriver.jit_merge_point(n=n)
- xy = XY()
- xy.n = n
- exctx.topframeref = vref = virtual_ref(xy)
- exctx.later = exctx.topframeref
- n -= 1
- exctx.topframeref = vref_None
- virtual_ref_finish(vref, xy)
- return g()
- #
- res = self.meta_interp(f, [15])
- assert res == 1
- self.check_aborted_count(0)
-
def test_jit_force_virtual_seen(self):
myjitdriver = JitDriver(greens = [], reds = ['n'])
#
More information about the pypy-commit
mailing list