llvmlite icon indicating copy to clipboard operation
llvmlite copied to clipboard

Fix symbol resolution race

Open folded opened this issue 2 years ago • 1 comments

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.

folded avatar Aug 22 '22 17:08 folded

Note for reviewers: prior discussions on #829

gmarkall avatar Aug 23 '22 11:08 gmarkall