Author: Armin Rigo <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to