1 //===-- sanitizer_symbolizer_libcdep.cc -----------------------------------===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is shared between AddressSanitizer and ThreadSanitizer
10 //===----------------------------------------------------------------------===//
12 #include "sanitizer_internal_defs.h"
13 #include "sanitizer_symbolizer.h"
15 namespace __sanitizer
{
17 Symbolizer
*Symbolizer::GetOrInit() {
18 SpinMutexLock
l(&init_mu_
);
21 if ((symbolizer_
= PlatformInit()))
26 } // namespace __sanitizer