[pypy-commit] pypy gc_no_cleanup_nursery: minor adjustments
fijal
noreply at buildbot.pypy.org
Thu Sep 25 12:39:59 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc_no_cleanup_nursery
Changeset: r73702:58d8d6eb499c
Date: 2014-09-25 12:39 +0200
http://bitbucket.org/pypy/pypy/changeset/58d8d6eb499c/
Log: minor adjustments
diff --git a/rpython/jit/backend/llsupport/llmodel.py b/rpython/jit/backend/llsupport/llmodel.py
--- a/rpython/jit/backend/llsupport/llmodel.py
+++ b/rpython/jit/backend/llsupport/llmodel.py
@@ -608,6 +608,7 @@
def bh_new_array(self, length, arraydescr):
return self.gc_ll_descr.gc_malloc_array(length, arraydescr)
+ bh_new_array_clear = bh_new_array
def bh_newstr(self, length):
return self.gc_ll_descr.gc_malloc_str(length)
diff --git a/rpython/jit/metainterp/resume.py b/rpython/jit/metainterp/resume.py
--- a/rpython/jit/metainterp/resume.py
+++ b/rpython/jit/metainterp/resume.py
@@ -1307,6 +1307,9 @@
return self.cpu.bh_new(typedescr)
def allocate_array(self, length, arraydescr):
+ if (arraydescr.is_array_of_structs() or
+ arraydescr.is_array_of_pointers()):
+ return self.cpu.bh_new_array_clear(length, arraydescr)
return self.cpu.bh_new_array(length, arraydescr)
def allocate_string(self, length):
More information about the pypy-commit
mailing list