bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). by ericsnowcurrently · Pull Request #12360 · python/cpython (original) (raw)
I plan on merging this on Friday (in 2 days). If we still see the same buildbot failures (or @vstinner still sees the problem in his VM), we can go from there. If a revert (again) is necessary, it won't be nearly as disruptive since this PR is much more focused. However, I don't expect any problems at this point.
Since the revert I've re-merged most of the original changes (as noted above, in the PR summary), with no apparent negative impact. I've also landed several fixes (e.g. to finalization, to locks after fork), found while working on the un-revert, which likely prevent the buildbot failures for which the revert happened. Furthermore, this PR includes several fixes (as noted above) that likewise probably help with those revert-motivating buildbot failures. Consequently I'm confident that the underlying issue has been resolved.