Author: Armin Rigo <[email protected]>
Branch:
Changeset: r74218:d20973a3d379
Date: 2014-10-25 16:04 +0200
http://bitbucket.org/pypy/pypy/changeset/d20973a3d379/
Log: Fix for test_refcounting.py test_llinterp_refcounted_graph_with_del
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
@@ -1147,6 +1147,9 @@
return self.buf
def __exit__(self, *args):
free_nonmovingbuffer(self.data, self.buf, self.pinned, self.is_raw)
+ __init__._always_inline_ = True
+ __enter__._always_inline_ = True
+ __exit__._always_inline_ = True
class scoped_nonmoving_unicodebuffer:
def __init__(self, data):
@@ -1156,6 +1159,9 @@
return self.buf
def __exit__(self, *args):
free_nonmoving_unicodebuffer(self.data, self.buf, self.pinned,
self.is_raw)
+ __init__._always_inline_ = True
+ __enter__._always_inline_ = True
+ __exit__._always_inline_ = True
class scoped_alloc_buffer:
def __init__(self, size):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit