mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-09 03:57:39 +00:00
Increase capacity of element arena to 8MB (#4244)
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. Release Notes: - Fixed a crash that could sometimes occur when the window contained lots of graphical elements.
This commit is contained in:
commit
bd6197eb2f
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ slotmap::new_key_type! {
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_local! {
|
thread_local! {
|
||||||
pub(crate) static ELEMENT_ARENA: RefCell<Arena> = RefCell::new(Arena::new(4 * 1024 * 1024));
|
pub(crate) static ELEMENT_ARENA: RefCell<Arena> = RefCell::new(Arena::new(8 * 1024 * 1024));
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FocusId {
|
impl FocusId {
|
||||||
|
|
Loading…
Reference in a new issue