[pypy-svn] r70868 - pypy/branch/stringbuilder2/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Tue Jan 26 10:20:55 CET 2010
Author: arigo
Date: Tue Jan 26 10:20:55 2010
New Revision: 70868
Modified:
pypy/branch/stringbuilder2/pypy/rpython/lltypesystem/llarena.py
Log:
Fix: forgot to update the 'usagemap'.
Modified: pypy/branch/stringbuilder2/pypy/rpython/lltypesystem/llarena.py
==============================================================================
--- pypy/branch/stringbuilder2/pypy/rpython/lltypesystem/llarena.py (original)
+++ pypy/branch/stringbuilder2/pypy/rpython/lltypesystem/llarena.py Tue Jan 26 10:20:55 2010
@@ -105,8 +105,12 @@
def shrink_obj(self, offset, newsize):
assert offset in self.objectptrs
- assert newsize < self.objectsizes[offset]
+ oldsize = self.objectsizes[offset]
+ assert newsize <= oldsize
self.objectsizes[offset] = newsize
+ for i in range(offset + newsize, offset + oldsize):
+ assert self.usagemap[i] == 'x'
+ self.usagemap[i] = '#'
class fakearenaaddress(llmemory.fakeaddress):
More information about the Pypy-commit
mailing list