[pypy-commit] pypy default: Add track_allocation=False to the raw memory allocated by array.array().
arigo
noreply at buildbot.pypy.org
Sat Jul 30 23:48:39 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r46114:1c74e688ab5b
Date: 2011-07-30 21:47 +0200
http://bitbucket.org/pypy/pypy/changeset/1c74e688ab5b/
Log: Add track_allocation=False to the raw memory allocated by
array.array().
diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -226,7 +226,8 @@
some += size >> 3
self.allocated = size + some
new_buffer = lltype.malloc(mytype.arraytype,
- self.allocated, flavor='raw')
+ self.allocated, flavor='raw',
+ track_allocation=False)
for i in range(min(size, self.len)):
new_buffer[i] = self.buffer[i]
else:
More information about the pypy-commit
mailing list