Skip to content

Commit

Permalink
avoid use of ThreadPool.init in install
Browse files Browse the repository at this point in the history
  • Loading branch information
brainkim committed Dec 30, 2024
1 parent 160999b commit e884ee1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/install/install.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ pub const PackageManager = struct {
}
} = .{},

thread_pool: ThreadPool,
thread_pool: *ThreadPool,
task_batch: ThreadPool.Batch = .{},
task_queue: TaskDependencyQueue = .{},

Expand Down Expand Up @@ -8839,9 +8839,7 @@ pub const PackageManager = struct {
.root_dir = entries_option.entries,
.env = env,
.cpu_count = cpu_count,
.thread_pool = ThreadPool.init(.{
.max_threads = cpu_count,
}),
.thread_pool = JSC.WorkPool.get(),
.resolve_tasks = .{},
.lockfile = undefined,
.root_package_json_file = root_package_json_file,
Expand Down Expand Up @@ -9007,9 +9005,7 @@ pub const PackageManager = struct {
.root_dir = root_dir.entries,
.env = env,
.cpu_count = cpu_count,
.thread_pool = ThreadPool.init(.{
.max_threads = cpu_count,
}),
.thread_pool = JSC.WorkPool.get(),
.lockfile = undefined,
.root_package_json_file = undefined,
.event_loop = .{
Expand Down

0 comments on commit e884ee1

Please sign in to comment.