mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Kernel: Fix bad VMObject iteration in sys$purge()
We were fooling ourselves into thinking all VMObjects are anonymous and then tried to call purge() on them as if they were.
This commit is contained in:
		
							parent
							
								
									79328b2aba
								
							
						
					
					
						commit
						9ec9d20e84
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -43,7 +43,8 @@ int Process::sys$purge(int mode) | |||
|         { | ||||
|             InterruptDisabler disabler; | ||||
|             MM.for_each_vmobject([&](auto& vmobject) { | ||||
|                 vmobjects.append(vmobject); | ||||
|                 if (vmobject.is_anonymous()) | ||||
|                     vmobjects.append(vmobject); | ||||
|                 return IterationDecision::Continue; | ||||
|             }); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling