Author: Armin Rigo <[email protected]>
Branch:
Changeset: r90518:237c12abc97e
Date: 2017-03-03 23:36 +0100
http://bitbucket.org/pypy/pypy/changeset/237c12abc97e/
Log: Move keepalive_until_here() to some place where it is reached
diff --git a/pypy/module/_io/interp_fileio.py b/pypy/module/_io/interp_fileio.py
--- a/pypy/module/_io/interp_fileio.py
+++ b/pypy/module/_io/interp_fileio.py
@@ -402,6 +402,7 @@
# optimized case: reading more than 64 bytes into a rwbuffer
# with a valid raw address
got = os_read(self.fd, target_address, length)
+ keepalive_until_here(rwbuffer)
got = rffi.cast(lltype.Signed, got)
if got >= 0:
return space.newint(got)
@@ -410,7 +411,6 @@
if err == errno.EAGAIN:
return space.w_None
raise exception_from_errno(space, space.w_IOError, err)
- keepalive_until_here(rwbuffer)
def readall_w(self, space):
self._check_closed(space)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit