mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
Remove thread-locals from sanitizer_common tests.
Not supported on Android. llvm-svn: 172408
This commit is contained in:
parent
92bb086fba
commit
e375a1f036
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user