Commit 656fe55
committed
Don't hold the Target's ModuleListLock over running LoadScriptingResourceInTarget.
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.1 parent cd6a614 commit 656fe55
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | | - | |
1050 | | - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1051 | 1057 | | |
1052 | 1058 | | |
1053 | 1059 | | |
| |||
0 commit comments