eugenis added inline comments. ================ Comment at: lib/stats/stats.cc:87 @@ +86,3 @@ + modules.push_back(mod); + return modules.size() - 1; +} ---------------- There could be a data race if this is called from concurrent dlopen-ed module constructors. http://reviews.llvm.org/D16176