diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-06-15 16:18:41 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-07 22:59:52 -0400 |
| commit | cda716ecc43929fd1c2c9679335b8b22f1b67d1a (patch) | |
| tree | 43161efad1af25784f1ac0933a3a4a94352ef6d6 /src/Zcu.zig | |
| parent | ca02266157ee72e41068672c8ca6f928fcbf6fdf (diff) | |
| download | zig-cda716ecc43929fd1c2c9679335b8b22f1b67d1a.tar.gz zig-cda716ecc43929fd1c2c9679335b8b22f1b67d1a.zip | |
InternPool: implement thread-safe hash map
Diffstat (limited to 'src/Zcu.zig')
| -rw-r--r-- | src/Zcu.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig index c4ebc6a36b..32c9045910 100644 --- a/src/Zcu.zig +++ b/src/Zcu.zig @@ -2394,9 +2394,9 @@ pub const CompileError = error{ ComptimeBreak, }; -pub fn init(mod: *Module) !void { +pub fn init(mod: *Module, thread_count: usize) !void { const gpa = mod.gpa; - try mod.intern_pool.init(gpa); + try mod.intern_pool.init(gpa, thread_count); try mod.global_error_set.put(gpa, .empty, {}); } |
