forked from OSchip/llvm-project
				
			[asan] nuke yet another async-signal-safety bug in UAR (oh, my)
llvm-svn: 191080
This commit is contained in:
		
							parent
							
								
									5403eaecc0
								
							
						
					
					
						commit
						2ab5a48dbe
					
				| 
						 | 
					@ -77,6 +77,7 @@ class FakeStack {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void Destroy() {
 | 
					  void Destroy() {
 | 
				
			||||||
 | 
					    PoisonAll(0);
 | 
				
			||||||
    UnmapOrDie(this, RequiredSize(stack_size_log_));
 | 
					    UnmapOrDie(this, RequiredSize(stack_size_log_));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -77,7 +77,6 @@ class AsanThread {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void DeleteFakeStack() {
 | 
					  void DeleteFakeStack() {
 | 
				
			||||||
    if (!fake_stack_) return;
 | 
					    if (!fake_stack_) return;
 | 
				
			||||||
    fake_stack_->PoisonAll(0);
 | 
					 | 
				
			||||||
    FakeStack *t = fake_stack_;
 | 
					    FakeStack *t = fake_stack_;
 | 
				
			||||||
    fake_stack_ = 0;
 | 
					    fake_stack_ = 0;
 | 
				
			||||||
    SetTLSFakeStack(0);
 | 
					    SetTLSFakeStack(0);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue