[MSan] Linker-initialize static fallback_mutex in msan_allocator.cc
Summary: static fallback_mutex in msan_allocator.cc does not need the ctor call and can be linker initialized. Issue: https://github.com/google/sanitizers/issues/194 Reviewers: morehouse, eugenis Subscribers: delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D48145 llvm-svn: 334749
This commit is contained in:
		
							parent
							
								
									241b758690
								
							
						
					
					
						commit
						c9b41354ff
					
				| 
						 | 
					@ -120,7 +120,7 @@ typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static Allocator allocator;
 | 
					static Allocator allocator;
 | 
				
			||||||
static AllocatorCache fallback_allocator_cache;
 | 
					static AllocatorCache fallback_allocator_cache;
 | 
				
			||||||
static SpinMutex fallback_mutex;
 | 
					static StaticSpinMutex fallback_mutex;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MsanAllocatorInit() {
 | 
					void MsanAllocatorInit() {
 | 
				
			||||||
  SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
 | 
					  SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue