Closed bep closed 4 years ago
With the Control channel that was recently added, making Clear thread-safe became pretty easy. So, that's what I did. https://github.com/karlseguin/ccache/commit/1189f7f993b53ed61b201dec120063d37638f9e9
go test -race
did not output an issue for the old code (for Clear) for me though, so I'm not 100% sure it'll address the error that you're saying, but I think it will.
But even in non-concurrents tests,
go test -race
reports a race: