llvm-project
0ddcd209 - Don't hold the Target's ModuleListLock over running LoadScriptingResourceInTarget (#138216)

Commit
151 days ago
Don't hold the Target's ModuleListLock over running LoadScriptingResourceInTarget (#138216) That calls an unknown amount of Python code, and can do quite a bit of work - especially if people do things like launch scripted processes in this script affordance. Doing that while holding a major lock like the ModuleList lock is asking for trouble. I tried to make a test that would actually stall without this, but I couldn't come up with anything that reliably failed. You always have to get pretty unlucky.
Author
Parents
Loading