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