Staging
v0.8.1
https://github.com/python/cpython
Revision 64838ce7172c7a92183b39b22504b433a33a884d authored by bobince on 11 March 2020, 23:39:02 UTC, committed by GitHub on 11 March 2020, 23:39:02 UTC
The 32-bit (49-day) TickCount relied on in EnterNonRecursiveMutex can overflow
in the gap between the 'target' time and the 'now' time WaitForSingleObjectEx
returns, causing the loop to think it needs to wait another 49 days. This is
most likely to happen when the machine is hibernated during
WaitForSingleObjectEx.

This makes acquiring a lock/event/etc from the _thread or threading module
appear to never timeout.

Replace with GetTickCount64 - this is OK now Python no longer supports XP which
lacks it, and is in use for time.monotonic().

Co-authored-by: And Clover <and.clover@bromium.com>
1 parent 894adc1
Raw File
Tip revision: 64838ce7172c7a92183b39b22504b433a33a884d authored by bobince on 11 March 2020, 23:39:02 UTC
bpo-39847: EnterNonRecursiveMutex() uses GetTickCount64() (GH-18780)
Tip revision: 64838ce
CODE_OF_CONDUCT.md
# Code of Conduct

Please note that all interactions on
[Python Software Foundation](https://www.python.org/psf-landing/)-supported
infrastructure is [covered](https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties)
by the [PSF Code of Conduct](https://www.python.org/psf/codeofconduct/),
which includes all the infrastructure used in the development of Python itself
(e.g. mailing lists, issue trackers, GitHub, etc.).

In general, this means that everyone is expected to be **open**, **considerate**, and
**respectful** of others no matter what their position is within the project.

back to top