Zcu: pass PerThread to intern pool string functions

This commit is contained in:
Jacob Young
2024-06-15 19:57:47 -04:00
parent 525f341f33
commit ca02266157
22 changed files with 1025 additions and 963 deletions

View File

@@ -71,7 +71,7 @@ pub const MutableValue = union(enum) {
} }),
.bytes => |b| try pt.intern(.{ .aggregate = .{
.ty = b.ty,
.storage = .{ .bytes = try pt.zcu.intern_pool.getOrPutString(pt.zcu.gpa, b.data, .maybe_embedded_nulls) },
.storage = .{ .bytes = try pt.zcu.intern_pool.getOrPutString(pt.zcu.gpa, pt.tid, b.data, .maybe_embedded_nulls) },
} }),
.aggregate => |a| {
const elems = try arena.alloc(InternPool.Index, a.elems.len);