Repository navigation
Conversation
D111 lowered the copy of a view into a str as copy+retain, and with_str_retain is a no-op for a pointer that is not the start of an owned payload: a str stored from an interior view (`line.slice(..).trim()`) shared bytes it did not hold and dangled once their temporary was freed (MIR `_5 = copy+retain _24.*` then `drop(_21)`; under WITH_DEBUG_ALLOC_SCRIBBLE the repro read freed memory; seed-driver flagged every workflow pin). Codegen now reads a held str through a dereference with with_str_own_view: a view that starts an owned payload is retained, any other is copied. The repro prints [alpha] in 8 allocations, as before D111; behav/da_2307 fail on the unfixed compiler ([3 ]).
Contributor
Author
|
Battery GREEN on 61eae8a (gate 617s, uat 92s, battery-checks 1181s, drop and move audits included). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2307. Draft until its battery is green.