diff options
author | 2022-11-07 19:10:59 -0800 | |
---|---|---|
committer | 2022-11-07 19:50:54 -0800 | |
commit | f84b2ec6d122d811d7466050bdba0295a9c548d6 (patch) | |
tree | c1a3d0c9b8840e19700618bb7e22d4f2f8cf72af /src | |
parent | e0cb7e4342d8bab2ecceffb34919add50b8073e6 (diff) | |
download | bun-f84b2ec6d122d811d7466050bdba0295a9c548d6.tar.gz bun-f84b2ec6d122d811d7466050bdba0295a9c548d6.tar.zst bun-f84b2ec6d122d811d7466050bdba0295a9c548d6.zip |
Handle threadsafety issue
Diffstat (limited to 'src')
-rw-r--r-- | src/fs.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs.zig b/src/fs.zig index 59f162609..2392a396f 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -176,9 +176,9 @@ pub const FileSystem = struct { allocator, _top_level_dir, ), - // .stats = std.StringHashMap(Stat).init(allocator), - .dirname_store = DirnameStore.init(allocator), - .filename_store = FilenameStore.init(allocator), + // must always use default_allocator since the other allocators may not be threadsafe when an element resizes + .dirname_store = DirnameStore.init(bun.default_allocator), + .filename_store = FilenameStore.init(bun.default_allocator), }; instance_loaded = true; |