[issue9260] A finer grained import lock

Antoine Pitrou report at bugs.python.org
Sat Apr 28 22:57:40 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, here is a draft patch for the new importlib.
Several issues with this patch:
- introduces a pure Python function (_lock_unlock_module) on the fast import path
- synchronization issues due to interruptibility of pure Python code (see _ModuleLock.acquire)
- afterfork fix-up necessary
- relies on _thread.RLock for bootstrapping reasons
- module locks are immortal

----------
Added file: http://bugs.python.org/file25392/module_locks.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9260>
_______________________________________


More information about the Python-bugs-list mailing list