[sanitizer] Move CommonSanitizerReportMutex from _print.cc to _common.cc

llvm-svn: 314006
This commit is contained in:
Vitaly Buka 2017-09-22 18:31:37 +00:00
parent cee7536188
commit 4a98c85008
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,8 @@ uptr stoptheworld_tracer_pid = 0;
// writing to the same log file.
uptr stoptheworld_tracer_ppid = 0;
StaticSpinMutex CommonSanitizerReportMutex;
void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type,
const char *mmap_type, error_t err,
bool raw_report) {

View File

@ -28,8 +28,6 @@
namespace __sanitizer {
StaticSpinMutex CommonSanitizerReportMutex;
static int AppendChar(char **buff, const char *buff_end, char c) {
if (*buff < buff_end) {
**buff = c;