Closed bconway closed 5 years ago
Thanks for the information, I'll review it.
@blocknonip it's been awhile, but I've got some time to care for my github packages :)
I'm working on a solution to this issue and I can see where a data race would happen just by looking at the code. I tried to write a test that would showcase it using t.Parallel() however so far I've been unsuccessful. Any change you can provide an example test that would cause the race detector to complain?
Thanks, looks great!
Global package-level variables are being used unsafely from the perspective of the race detector. For example, trying to use
NewNode()
andGenerate()
at the same time will trip the race detector fornodeShift
in:Steps to reproduce:
NewNode()
andGenerate()
in parallel, such as via tests usingt.Parallel()
.Other package-level variables besides
nodeShift
may also affected.