[pypy-commit] pypy lightweight-finalizers: fix translation. I don't think this case can happen in practice though, no
fijal
noreply at buildbot.pypy.org
Sat Oct 1 00:00:38 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: lightweight-finalizers
Changeset: r47735:e1e51f303ca9
Date: 2011-09-30 19:00 -0300
http://bitbucket.org/pypy/pypy/changeset/e1e51f303ca9/
Log: fix translation. I don't think this case can happen in practice
though, no test.
diff --git a/pypy/rpython/memory/gc/minimark.py b/pypy/rpython/memory/gc/minimark.py
--- a/pypy/rpython/memory/gc/minimark.py
+++ b/pypy/rpython/memory/gc/minimark.py
@@ -1687,7 +1687,7 @@
arena -= extra_words * WORD
allocsize += extra_words * WORD
#
- if self.has_raw_mem_ptr(obj):
+ if self.has_raw_mem_ptr(self.get_type_id(obj)):
self._free_raw_mem_from(obj)
llarena.arena_free(arena)
self.rawmalloced_total_size -= allocsize
More information about the pypy-commit
mailing list