Commit bb323b2
authored
Use sys.modules.get() in the "with _ModuleLockManager(name):" block
to protect the dictionary key with the module lock and use an atomic
get to prevent race condition.
Remove also _bootstrap._POPULATE since it was unused
(_bootstrap_external now has its own _POPULATE object), add a new
_SENTINEL object instead.
(cherry picked from commit e72b135)
1 parent df5837b commit bb323b2
2 files changed
+347
-346
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 449 | | |
453 | 450 | | |
454 | 451 | | |
| |||
953 | 950 | | |
954 | 951 | | |
955 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
| 960 | + | |
960 | 961 | | |
961 | 962 | | |
962 | | - | |
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
| |||
0 commit comments