]> granicus.if.org Git - python/commit
coalesce GILless sections in new_buffersize (#5059)
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Jan 2018 23:52:42 +0000 (15:52 -0800)
committerGitHub <noreply@github.com>
Tue, 2 Jan 2018 23:52:42 +0000 (15:52 -0800)
commiteb08a9290f28e602ba035acfe8c2d3cd2b9965b0
treebecfaf86abbb67b91c01a2fef00e322fee5fa568
parentdbf52e02f18dac6f5f0a64f78932f3dc6efc056b
coalesce GILless sections in new_buffersize (#5059)

830daae1c82ed33deef0086b7b6323e5be0b0cc8 added some new GIL-releasing to new_buffersize. This is fine, but it's better to avoid reacquiring the GIL for as long as possible. Also, it should use FILE_(BEGIN|END)_ALLOW_THREADS to avoid having the file closed from under it.
Objects/fileobject.c