[pypy-commit] pypy vmprof2: remove this assert, unique_id can be zero
fijal
noreply at buildbot.pypy.org
Fri Apr 17 19:01:20 CEST 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: vmprof2
Changeset: r76822:f2a15c1a7c15
Date: 2015-04-17 19:01 +0200
http://bitbucket.org/pypy/pypy/changeset/f2a15c1a7c15/
Log: remove this assert, unique_id can be zero
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
@@ -176,10 +176,10 @@
pos = self.patch_position.pop()
self.l[pos] = size
self.l[pos + 1] = len(self.l)
- # at the end there should be no zeros
+ # at the end there should be no zeros, except unique_id which can
+ # be zero
for i in range(len(self.l) / 4):
item = self.l[i * 4] # unique_id
- assert item > 0 # no zeros here
item = self.l[i * 4 + 2] # end in asm
assert item > 0
item = self.l[i * 4 + 3] # end in l
More information about the pypy-commit
mailing list