Changeset View
Changeset View
Standalone View
Standalone View
lib/scudo/scudo_tsd.h
Show All 13 Lines | |||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef SCUDO_TSD_H_ | #ifndef SCUDO_TSD_H_ | ||||
#define SCUDO_TSD_H_ | #define SCUDO_TSD_H_ | ||||
#include "scudo_allocator.h" | #include "scudo_allocator.h" | ||||
#include "scudo_utils.h" | #include "scudo_utils.h" | ||||
#if !SANITIZER_WINDOWS | |||||
#include <pthread.h> | # include <pthread.h> | ||||
#else | |||||
# include <windows.h> | |||||
#endif // SANITIZER_WINDOWS | |||||
namespace __scudo { | namespace __scudo { | ||||
struct ALIGNED(64) ScudoTSD { | struct ALIGNED(64) ScudoTSD { | ||||
AllocatorCache Cache; | AllocatorCache Cache; | ||||
uptr QuarantineCachePlaceHolder[4]; | uptr QuarantineCachePlaceHolder[4]; | ||||
void init(bool Shared); | void init(bool Shared); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |