Skip to content

Fix a memory leak in LStream. - #22400

Open
ppedrot wants to merge 2 commits into
rocq-prover:masterfrom
ppedrot:lstream-remove-interval-loc
Open

Fix a memory leak in LStream.#22400
ppedrot wants to merge 2 commits into
rocq-prover:masterfrom
ppedrot:lstream-remove-interval-loc

Conversation

@ppedrot

@ppedrot ppedrot commented Aug 24, 2026

Copy link
Copy Markdown
Member

We stop storing all stream locations from the past in a global hash table and rely instead on an explicit type pointing to specific positions of the stream.

… it.

We introduce a new opaque type representing abstract positions in a
stream, only introduced through the "current" position.
We don't store the locations in a hash table that never reclaims them.
Instead, we thread them along the stream. The code unfortunately adds
one more small stream implementation, but this is needed to overcome
the limitations of the irremediably imperative API of stream.ml.
@ppedrot ppedrot added this to the 9.4+rc1 milestone Aug 24, 2026
@ppedrot
ppedrot requested a review from a team as a code owner August 24, 2026 15:23
@ppedrot ppedrot added kind: cleanup Code removal, deprecation, refactorings, etc. kind: performance Improvements to performance and efficiency. request: full CI Use this label when you want your next push to trigger a full CI. labels Aug 24, 2026
@coqbot-app coqbot-app Bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: cleanup Code removal, deprecation, refactorings, etc. kind: performance Improvements to performance and efficiency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant