c39280a545
We run tests in parallel and recently we began hitting a high enough degree of parallelism that we've begun seeing "unsynchronized access to map" errors in our test passes (intermittently). The root cause is that access to the type symbol caches aren't synchronized. It would be ideal if we actually rewired these to be cached in the compiler context -- rather than being global -- but this fix is sufficient for now. We will simply synchronize access using a Mutex. |
||
---|---|---|
.. | ||
ast | ||
binder | ||
core | ||
errors | ||
metadata | ||
symbols | ||
testdata | ||
types | ||
compiler.go | ||
compiler_test.go |