llvmlite
llvmlite copied to clipboard
Fix symbol resolution race
If two threads attempt to resolve the same symbol at the same time, then both may test the symbol dictionary before the other has a chance to insert a wrapper object, leading to both threads creating their own wrapper.
Add double checked locking to avoid this possibility.
Note for reviewers: prior discussions on #829