Skip to content

Commit

Permalink
wip: narrow it down
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jul 1, 2024
1 parent c62e005 commit 8b0cf5f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/MachO.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1108,15 +1108,17 @@ pub fn dedupLiterals(self: *MachO) !void {
try object.resolveLiterals(&lp, self);
}

var wg: WaitGroup = .{};
// var wg: WaitGroup = .{};
{
wg.reset();
defer wg.wait();
// wg.reset();
// defer wg.wait();
for (self.objects.items) |index| {
self.base.thread_pool.spawnWg(&wg, File.dedupLiterals, .{ self.getFile(index).?, lp, self });
// self.base.thread_pool.spawnWg(&wg, File.dedupLiterals, .{ self.getFile(index).?, lp, self });
self.getFile(index).?.dedupLiterals(lp, self);
}
if (self.getInternalObject()) |object| {
self.base.thread_pool.spawnWg(&wg, File.dedupLiterals, .{ object.asFile(), lp, self });
// self.base.thread_pool.spawnWg(&wg, File.dedupLiterals, .{ object.asFile(), lp, self });
object.asFile().dedupLiterals(lp, self);
}
}

Expand Down

0 comments on commit 8b0cf5f

Please sign in to comment.