Skip to content

[3.6] bpo-30891: Fix importlib _find_and_load() race condition (#2646) - #2651

Merged
vstinner merged 1 commit into
python:3.6from
vstinner:importlib_module_lock36
Jul 10, 2017
Merged

vstinner merged 1 commit into
python:3.6from
vstinner:importlib_module_lock36

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • Rewrite importlib _get_module_lock(): it is now responsible to hold
    the imp lock directly.
  • _find_and_load() now holds the module lock to check if name is in
    sys.modules to prevent a race condition
    (cherry picked from commit 4f9a446)
* Rewrite importlib _get_module_lock(): it is now responsible to hold
  the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
  sys.modules to prevent a race condition
(cherry picked from commit 4f9a446)
@vstinner
vstinner merged commit fe6e686 into python:3.6 Jul 10, 2017
@vstinner
vstinner deleted the importlib_module_lock36 branch July 10, 2017 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants