Skip to content

#691 str flip: str buffers free on drop; Copy-with-str sites de-Copy (D28 ruling 1) #747

Closed

Description

@ehartford

Ruling

D28 ruling 1 (Eric, 2026-07-31, on the #744 brief): str is owned and
drops — the second half of the #691 wide flip proceeds. Spec §2.3 rules 1–3
and §15.1 already classify str (= String) as owning + Drop and
recursively exclude it from Copy; the flip makes that text true at
runtime.

Scope

  1. The flip: dropping a str frees its buffer (parity with the landed
    Vec-buffer half of Campaign: the wide flip — containers own their buffers (POD-element drop elaboration) #691). Same blast-radius discipline as the Vec flip:
    alone in its batch, :move-audit/:drop-audit mandatory, drop-audit
    run before AND after.
  2. De-Copy audit: the shipped Copy-with-str tokens lose Copy as
    interim conformance — JsonView (lib/std/json.w:22), Package,
    ProjectInfo, Diagnostics (lib/std/build.w:255-270) — boundaries
    borrow; D5 auto-referencing keeps call sites spelled identically. Sweep
    the remaining ~95 impl Copy sites for str-bearing fields.
  3. Un-pin: delete the D28 ruling-3 cap override in
    emitc_migrate_compiler_c (build/emit_c.w) — the flip is its named
    revert condition. Expected effect measured in c-migrate: compiler-C migration exceeds the 64 GiB memory cap #744: the compiler-C
    migration's ~68 GB transient peak collapses to its live set, back under
    the 64 GiB default cap.

Notes

Activity

  1. added 15 commits that reference this issue on Aug 9, 2026
  2. 101 remaining items

  3. added 4 commits that reference this issue on Aug 18, 2026
  4. ehartford commented on Aug 31, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-08-31: CLOSE (campaign complete). 85bfc45 records completion; the tree reseeded through it; probes confirm str buffers free on drop (1000 dropped f-strings → leaks --atExit reports 0), de-Copy/ephemeral restore done, D28 cap pin deleted. D30 sequencing follows as its own tracker (#761).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions