[pypy-commit] pypy cffi-handle-lifetime: A branch to fix the lifetime of ffi.new_handle(x): currently, it becomes

arigo noreply at buildbot.pypy.org
Sun Oct 11 19:29:31 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-handle-lifetime
Changeset: r80110:0af42d8b4142
Date: 2015-10-11 18:58 +0200
http://bitbucket.org/pypy/pypy/changeset/0af42d8b4142/

Log:	A branch to fix the lifetime of ffi.new_handle(x): currently, it
	becomes invalid as soon as 'x' is first found as unreachable, before
	x.__del__() is called. There is no way to use x.__del__() at app-
	level to reset some fields, because there is a risk that we call
	ffi.from_handle() after it became dead but before x.__del__() is
	invoked.



More information about the pypy-commit mailing list