[pypy-commit] pypy vmprof: small fix
fijal
noreply at buildbot.pypy.org
Mon Feb 23 19:12:50 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: vmprof
Changeset: r76092:f9fa525ca0f0
Date: 2015-02-23 20:12 +0200
http://bitbucket.org/pypy/pypy/changeset/f9fa525ca0f0/
Log: small fix
diff --git a/rpython/jit/backend/llsupport/codemap.py b/rpython/jit/backend/llsupport/codemap.py
--- a/rpython/jit/backend/llsupport/codemap.py
+++ b/rpython/jit/backend/llsupport/codemap.py
@@ -73,9 +73,9 @@
used = getattr(self, name + '_used')
allocated = len(getattr(self, name))
lst = getattr(self, name)
- if pos + len(to_insert) > allocated or pos != used:
+ if used + len(to_insert) > allocated or pos != used:
old_lst = lst
- if pos + len(to_insert) > allocated:
+ if used + len(to_insert) > allocated:
new_size = max(4 * len(old_lst),
(len(old_lst) + len(to_insert)) * 2)
else:
More information about the pypy-commit
mailing list