From b640e0e7afe4edfeaad09d03ea4d0c532288f504 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 24 Jan 2024 10:14:26 +0100 Subject: [PATCH] Increase capacity of element arena to 8MB This fixes a panic we just saw on nightly. It's the first time we see this panic, so I think it's pretty safe to assume having twice as much capacity will fix it. --- crates/gpui/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index 1ae632dfdee123c88d28e5550654fc3e0e5eb1bb..1bf072045963fc9eef25756edacefce701ed1c51 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -106,7 +106,7 @@ slotmap::new_key_type! { } thread_local! { - pub(crate) static ELEMENT_ARENA: RefCell = RefCell::new(Arena::new(4 * 1024 * 1024)); + pub(crate) static ELEMENT_ARENA: RefCell = RefCell::new(Arena::new(8 * 1024 * 1024)); } impl FocusId {