Remove thread-locals from sanitizer_common tests.

Not supported on Android.

llvm-svn: 172408
This commit is contained in:
Evgeniy Stepanov 2013-01-14 14:06:58 +00:00
parent 92bb086fba
commit e375a1f036
3 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,7 @@ typedef LargeMmapAllocator<> SecondaryAllocator;
typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
SecondaryAllocator> Allocator;
static THREADLOCAL AllocatorCache cache;
static AllocatorCache cache;
static Allocator allocator;
static int inited = 0;

View File

@ -386,7 +386,7 @@ TEST(SanitizerCommon, CombinedAllocator32Compact) {
template <class AllocatorCache>
void TestSizeClassAllocatorLocalCache() {
static THREADLOCAL AllocatorCache static_allocator_cache;
static AllocatorCache static_allocator_cache;
static_allocator_cache.Init();
AllocatorCache cache;
typedef typename AllocatorCache::Allocator Allocator;
@ -438,7 +438,7 @@ TEST(SanitizerCommon, SizeClassAllocator32CompactLocalCache) {
#if SANITIZER_WORDSIZE == 64
typedef SizeClassAllocatorLocalCache<Allocator64> AllocatorCache;
static THREADLOCAL AllocatorCache static_allocator_cache;
static AllocatorCache static_allocator_cache;
void *AllocatorLeakTestWorker(void *arg) {
typedef AllocatorCache::Allocator Allocator;

View File

@ -21,8 +21,7 @@ struct ListItem {
typedef IntrusiveList<ListItem> List;
// Check that IntrusiveList can be made thread-local.
static THREADLOCAL List static_list;
static List static_list;
static void SetList(List *l, ListItem *x = 0,
ListItem *y = 0, ListItem *z = 0) {