Skip to content

libexpr: Clear PosTable contents in EvalState::resetFileCache#14525

Merged
Ericson2314 merged 1 commit intomasterfrom
reset-positions-repl
Nov 9, 2025
Merged

libexpr: Clear PosTable contents in EvalState::resetFileCache#14525
Ericson2314 merged 1 commit intomasterfrom
reset-positions-repl

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Nov 9, 2025

Motivation

Otherwise PosTable grows indefinitely for each reload. Since the total input size is limited to 4GB (uint32_t for byte offset PosIdx) it can get exhausted pretty. This ensures that we don't waste memory on reloads as well.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Otherwise PosTable grows indefinitely for each reload. Since
the total input size is limited to 4GB (uint32_t for byte offset PosIdx)
it can get exhausted pretty. This ensures that we don't waste memory
on reloads as well.
@xokdvium xokdvium requested a review from edolstra as a code owner November 9, 2025 20:11
@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 9, 2025
Merged via the queue into master with commit 60667e9 Nov 9, 2025
20 checks passed
@Ericson2314 Ericson2314 deleted the reset-positions-repl branch November 9, 2025 21:55
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants