sunho wrote: Note all the public interface already locks the mutex and the functions changed here are only used within the public interface. So, the lock would be redundant. https://github.com/llvm/llvm-project/pull/112667