Base.gensym()
not always unique over threads,
#18172
Labels
multithreading
Base.Threads and related functionality
Base.gensym()
not always unique over threads,
#18172
Base,gensym()
should always return a unique result.I got currious as to if it did, when having multiple threads.
Answer: Mostly.
MVE:
We can see that
##271
and#273
occurs multiple times.tt2()
a second time, it seems to always be unique.tt3()
is seems like it can occur on the first use of thatI guess this is some play with codegen.
Easy solution would be to append the generating
threadid()
whenever a symbol is generated.But this might be a symptom of a deeper issue, so.
This is with:
The text was updated successfully, but these errors were encountered: