forked from mirrors/gecko-dev
		
	Bug 975876 - Allow GC in ~AutoMaybeTouchDeadZones to touch dead zones (r=luke)
This commit is contained in:
		
							parent
							
								
									556e355bad
								
							
						
					
					
						commit
						1369095eb4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -5523,12 +5523,12 @@ AutoMaybeTouchDeadZones::AutoMaybeTouchDeadZones(JSObject *obj) | |||
| 
 | ||||
| AutoMaybeTouchDeadZones::~AutoMaybeTouchDeadZones() | ||||
| { | ||||
|     runtime->gcManipulatingDeadZones = manipulatingDeadZones; | ||||
| 
 | ||||
|     if (inIncremental && runtime->gcObjectsMarkedInDeadZones != markCount) { | ||||
|         JS::PrepareForFullGC(runtime); | ||||
|         js::GC(runtime, GC_NORMAL, JS::gcreason::TRANSPLANT); | ||||
|     } | ||||
| 
 | ||||
|     runtime->gcManipulatingDeadZones = manipulatingDeadZones; | ||||
| } | ||||
| 
 | ||||
| AutoSuppressGC::AutoSuppressGC(ExclusiveContext *cx) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bill McCloskey
						Bill McCloskey