Merge pull request #1039 from Techatrix/skip-failed-cimports
skip failed cimports on garbage collection
This commit is contained in:
		
						commit
						515a0e4727
					
				@ -345,7 +345,7 @@ fn garbageCollectionCImports(self: *DocumentStore) error{OutOfMemory}!void {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    for (self.handles.values()) |handle| {
 | 
					    for (self.handles.values()) |handle| {
 | 
				
			||||||
        for (handle.cimports.items(.hash)) |hash| {
 | 
					        for (handle.cimports.items(.hash)) |hash| {
 | 
				
			||||||
            const index = self.cimports.getIndex(hash).?;
 | 
					            const index = self.cimports.getIndex(hash) orelse continue;
 | 
				
			||||||
            reachable.set(index);
 | 
					            reachable.set(index);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user