We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044b6dd commit 0b9cd8aCopy full SHA for 0b9cd8a
crates/rust-analyzer/src/task_pool.rs
@@ -9,7 +9,13 @@ pub(crate) struct TaskPool<T> {
9
10
impl<T> TaskPool<T> {
11
pub(crate) fn new(sender: Sender<T>) -> TaskPool<T> {
12
- TaskPool { sender, inner: threadpool::ThreadPool::default() }
+ const STACK_SIZE: usize = 8 * 1024 * 1024;
13
+
14
+ let inner = threadpool::Builder::new()
15
+ .thread_name("Worker".into())
16
+ .thread_stack_size(STACK_SIZE)
17
+ .build();
18
+ TaskPool { sender, inner }
19
}
20
21
pub(crate) fn spawn<F>(&mut self, task: F)
0 commit comments