[pypy-commit] pypy gc-incminimark-pinning: no apparent reason to restirct to is_pinnd xor is_raw.

groggi noreply at buildbot.pypy.org
Mon Jun 2 17:24:36 CEST 2014


Author: Gregor Wegberg <code at gregorwegberg.com>
Branch: gc-incminimark-pinning
Changeset: r71849:616a845382ef
Date: 2014-05-25 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/616a845382ef/

Log:	no apparent reason to restirct to is_pinnd xor is_raw.

diff --git a/rpython/rtyper/lltypesystem/rffi.py b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -789,11 +789,10 @@
         # 'buf' points to its own raw-malloced memory.
         # XXX fix comment (groggi)
 
-        assert not (is_pinned and is_raw)
 
         if is_pinned:
             rgc.unpin(data)
-        elif is_raw:
+        if is_raw:
             lltype.free(buf, flavor='raw')
         # if is_pinned and is_raw are false: data was already nonmovable,
         # we have nothing to clean up


More information about the pypy-commit mailing list