Merge pull request #1039 from Techatrix/skip-failed-cimports

skip failed cimports on garbage collection
This commit is contained in:
Techatrix
2023-03-07 14:01:38 +00:00
committed by GitHub

View File

@@ -345,7 +345,7 @@ fn garbageCollectionCImports(self: *DocumentStore) error{OutOfMemory}!void {
for (self.handles.values()) |handle| {
for (handle.cimports.items(.hash)) |hash| {
const index = self.cimports.getIndex(hash).?;
const index = self.cimports.getIndex(hash) orelse continue;
reachable.set(index);
}
}