Skip to content

gpui(windows): Move interior mutability down into fields#44002

Merged
Veykril merged 3 commits intomainfrom
push-lsnzlxyyzpto
Dec 2, 2025
Merged

gpui(windows): Move interior mutability down into fields#44002
Veykril merged 3 commits intomainfrom
push-lsnzlxyyzpto

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Dec 2, 2025

Windows applications tend to be fairly re-entrant which does not work well with our current top-level RefCell approach. We have worked around a bunch of panics in the past due to this, but ultimately this will re-occur (and still does according to sentry) in the future. So this PR moves all interior mutability down to the fields.

Fixes ZED-1HM
Fixes ZED-3SH
Fixes ZED-1YV
Fixes ZED-29S
Fixes ZED-29X
Fixes ZED-369
Fixes ZED-20W

Release Notes:

  • Fixed panics on windows caused by unexpected re-entrancy for interior mutability

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 2, 2025
@Veykril Veykril marked this pull request as ready for review December 2, 2025 15:53
@Veykril Veykril enabled auto-merge (squash) December 2, 2025 15:56
@Veykril Veykril merged commit 305e73e into main Dec 2, 2025
25 checks passed
@Veykril Veykril deleted the push-lsnzlxyyzpto branch December 2, 2025 16:02
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…ies#44002)

Windows applications tend to be fairly re-entrant which does not work
well with our current top-level `RefCell` approach. We have worked
around a bunch of panics in the past due to this, but ultimately this
will re-occur (and still does according to sentry) in the future. So
this PR moves all interior mutability down to the fields.

Fixes ZED-1HM
Fixes ZED-3SH
Fixes ZED-1YV
Fixes ZED-29S
Fixes ZED-29X
Fixes ZED-369
Fixes ZED-20W

Release Notes:

- Fixed panics on windows caused by unexpected re-entrancy for interior
mutability
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…ies#44002)

Windows applications tend to be fairly re-entrant which does not work
well with our current top-level `RefCell` approach. We have worked
around a bunch of panics in the past due to this, but ultimately this
will re-occur (and still does according to sentry) in the future. So
this PR moves all interior mutability down to the fields.

Fixes ZED-1HM
Fixes ZED-3SH
Fixes ZED-1YV
Fixes ZED-29S
Fixes ZED-29X
Fixes ZED-369
Fixes ZED-20W

Release Notes:

- Fixed panics on windows caused by unexpected re-entrancy for interior
mutability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant