Skip to content

Release recycled context maps from consumed registration handles #652

Open

Description

Current status - 2026-11-08

MANAGED FIX MERGED; NATIVE RECLAMATION UNRESOLVED. The recycled-map capture correction and 48-case managed regression fixture are merged. The retained native research scope has collection failures, and ordinary CI excludes MemoryReclaim. Keep the consumed-handle/map-reuse native lifetime contract open.

Implementation baseline: master a2f096f1068f7951d193b95a03e76b480b7ef8a8, merged through #693 (same tree as qualified source 03f08cbecb156b7958dfc3e570d92d3deac04b4b). Shared release-wide review, cost and evidence gates remain in #575/#503. Historical observations and stopped studies below retain their original scope and verdict.

Current status, 2026-10-30

Public PR693 remains open and unmerged at 30ada1ff2524d4d8fd3f5497dec222888853af16. All six current-source native scopes now qualify on original Unity run 41027897125 and performance run 41027897218, attempt 1. The four supported Editors each retain 1,034 PASS / 15 identical skips, including all seven optional/nullable cases. Mono/IL2CPP retain 27,813/27,809 PASS on the first three versions and 27,812/27,808 on Unity 6.5, including all eight floating cases per scope. Old inventories and frozen classifiers remain qualified.

Internal correctness has 207 PASS. Comparisons retain 470 PASS / 66 identical skips plus five separate allocation-honesty passes. The aggregate binds 14 GitHub archives, 145 raw members, 15 worker inventories and 10 logs, with source/profile/process/build-input/replay/binary identity and every cleanup chain qualified. Final receipt SHA-256: adbcd5e20c66cba97803bdee017b9e05a9ec45f0e7a73440cdd640a75ab0314a. Source/run bindings precede target raw; all original rules remain unchanged.

The formatter failure and absent wallstop code/copy acceptance keep the PR unmerged. Timing CSV allocation fields remain -1/unmeasured. Ordinary correctness does not qualify historical failure causes, manual reclamation, calibration, native cost or final consumer/shipping acceptance. Those gates and stopped studies remain unchanged.

The correction was merged through PR619. Historical PR693 source was dae52d34af14dd4ce1e10f836ac8760e092a9797. All four default Unity versions and both performance correctness scopes qualified, including retained raw/source/process evidence and all six license/lock cleanup chains. Default correctness excludes the separate manual reclamation scope. These passes do not repair or explain its retained native failures.

This issue stays open for reclamation/root attribution, lifecycle/retained/native cost and final wallstop code/copy acceptance. The formatter failure also prevents a fully green PR. Original assertions, collection windows, unfavorable observations and stopped-study verdicts remain unchanged. No collector workaround, identical retry, shipping acceptance or readiness claim follows.

The historical development record below remains retained; its draft PR heads and pending checks describe those earlier observations.

Historical integration status, 2026-10-27

The correction is integrated into draft PR619, currently f213317a410b58d1cd2190e082df045e72557fbe. Built-in context registrations leave their secondary identity anchor null, preserving the live anchor and handle identity while releasing the recycled-map alias. Runtime/Core is byte-identical to qualified parent2e7/68fe; the new f213Runtime change is confined to component configuration.

Parent68fe has qualified all four default Unity versions and both native performance scopes. Current f213whole-head qualification remains incomplete: three default-version jobs report passing tests but time out before artifact upload, and6.5continues. Historical results and source equivalence do not substitute for missing current artifacts. Full reclamation still has retained native failures; root attribution, native lifecycle/retained cost and final release gates remain open. Wallstop authorizes PR619 and future commits; this issue remains open without a readiness or shipping-revision claim.

The original private-candidate observations and local qualification below are a historical development record, not the current integration state.

A validly deregistered targeted or sourced-broadcast raw handle retains an empty context map after ordinary trimming returns that map to the shared pool. If another bus rents it, retaining the old handle keeps that unrelated bus, handler and receiver alive.

Source: MessageBus.InternalRegisterWithContext captures its ContextHandlerMap as MessageBusRegistration.capturedSecondary. Deregistration never reads that field; only handle equality and hashing do. Trimming clears and pools the map, so an old value can retain later contents.

Actual unchanged public PR619 fbddb80 and private b2fd69b sources: six cases each, 2 FAIL/4 PASS, identical vectors. Targeted/broadcast plus retained consumed handle and proven map reuse retained all unrelated graph weak references after fixed collection rounds. Clearing the handle or force-flushing the empty pool before reuse collected them. Both failing public cases reproduced 50/50 fresh processes each, 0 unexpected. The old registration is deregistered exactly once; no unsupported repeated-consumed-handle behavior is assumed.

Protocols: initial probe, observations and independent-observer extension. Local raw evidence: .artifacts/perf-lab/502-consumed-context-map-retention-s472.

Required: independently observe map reuse; shared production behavior regression RED before runtime changes; stop retaining the recycled map without changing valid handle identity/deregistration; focused/repeated/full scopes; native Unity allocation/reclamation and supported Unity/IL2CPP qualification; wallstop review of code/copy before integration. Native memory/cost remains unmeasured. This does not explain the historical #502 capture failure or #640. Related #503 ownership audit. Keep any correction local until the held batch's native/publication/review gates are resolved.

Current local qualification

  • Public-source defect and collection/reuse controls; 100 fresh failing-case observations.
  • Independent map observer and unchanged candidate replay.
  • Identical final shared fixture: unchanged Runtime16 FAIL/32 PASS -> candidate48 PASS.
  • Ten fresh focused processes480 PASS; full5540 PASS with exact5492 prior+48 outcomes.
  • Docs699 exact PASS;16 copied-reference semantic scopes PASS; capture-restoration counterfault.
  • Minimal correction/docs committed locally with format/spelling/meta/validation and normal hooks.
  • Exact42-file review packet, separate-index patch restoration and native source-only preparation.
  • Native Unity correctness/allocation/reclamation and supported Unity/IL2CPP qualification.
  • Native cost qualification and wallstop code/copy review.
  • Authorized publication/integration with the held correctness batch.

Private commit: bfb5da0. At this original private milestone nothing had been pushed or adopted. Current integration status is recorded above; the issue remains open.

Activity

  1. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Prospective shared regression and minimal candidate for #652.

    Independent observer v2 completed on both unchanged heads: 12 cases total, exact equality with all original per-case vectors (4 FAIL/8 PASS across heads). It reads the sole live context map from the bus's existing high-water dictionary; no handle-field observer dependency remains.

    Add one shared production-source MemoryReclaim fixture, wired to portable .NET and the existing Unity Runtime assembly. Exactly 48 cases from MessageScenarios.AllKinds filtered to targeted/broadcast, times old handle/post registration, new handle/post registration, same/different message type, and three fixed controls (retained consumed handle; clear handle after proven reuse; force-flush pool before reuse). Fixed three full collection rounds, no waits. Public registration/deregistration/token/emit/trim APIs; cold existing MessageBusInspection for map identity and actual live-registration counts. Heap handle root retained through collection, NoInlining factories, receiver owns token. Check exact callback count, valid duplicate registration cleanup, copied handle equality/hash and distinct handle inequality, old cold live count zero before trim, actual map reuse/nonreuse, and collection of all four unrelated graph weak references. Cleanup owned registrations/maps even after assertion failure.

    Run the complete identical final fixture against unchanged b2 Runtime in a separate RED worktree before any Runtime edit. Expected RED: 16 FAIL (retain consumed handle plus reuse), 32 PASS controls. Retain exact test IDs/assertions. Then the only runtime candidate removes the capturedBroadcastHandlers alias and passes null for capturedSecondary in InternalRegisterWithContext. Leave handle fields/layout/equality/hash, other callers and deregistration source unchanged. This avoids an unrelated representation change.

    GREEN requires all 48 shared cases; 10 fresh focused processes; full portable suite with exact preservation of the prior 5492 outcomes; unchanged independent public v2 probe replay; docs tests; relevant formatting/spelling/meta/validation; copied-reference semantic compilation separately labelled, and exact-source critical review. Add documentation and changelog for the real user lifecycle. A source-counterfault restoring the old capture must reproduce the same 16 RED case IDs, with frozen inputs before execution. Do not weaken a predicate or silently revise an adverse setup outcome.

    Keep in a separate local child of b2, no push/integration. Native Unity correctness/allocation/reclamation, supported Unity/IL2CPP, cost and human code/copy review remain required. This is an ownership fix, no reduced handle-size or native speed claim. Evidence remains .artifacts/perf-lab/502-consumed-context-map-retention-s472.

  2. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Shared RED v2 completed before Runtime edits: exactly 16 FAIL/32 PASS, matching every predicted mode-0 case. v1 did not execute tests: CS1744 from calling Watch(label) as a bus overload. v2 uses the existing LeakWatcher constructor with the same bus/label; no behavioral predicate changed. The v1 compile log and freeze remain.

    Before final shared-fixture admission, make configuration and diagnostics deterministic for native reuse: construct owned test buses through the existing internal factory with a constant test clock, idleEvictionTicks=30, idleEvictionEnabled=false and trimApiEnabled=true. This preserves the real 64-emission age and ordinary Trim(false), while preventing a host's settings asset or wall-clock cadence from changing the setup. Public v1/v2 probes still cover real public constructors unchanged. Disable MessagingDebug in fixture SetUp and restore it in TearDown. Include all four actual weak-reference booleans in failure text. These strengthen repeatability/diagnostics and remove no predicate or case. Re-freeze and rerun all 48 on unchanged b2 before editing Runtime; require the same 16 failing/32 passing identities. Retain v2 unchanged.

  3. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Final shared RED v3 is complete on unchanged b2 Runtime before candidate implementation: 16 FAIL/32 PASS/0 SKIP, all 48 test IDs and outcomes exactly match v2; only the 16 retained-handle/reuse cases fail. All 238 prefrozen owned inputs plus 2 external analyzer hashes are exact after execution, and git confirms no Runtime diff. v1's compile error and v2 evidence remain intact. Proceeding with only the declared capture removal in a separate child. No native or historical-failure attribution.

  4. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    The candidate currently passes all 48 shared cases, ten fresh processes (480 PASS), full portable scope (5540 PASS = prior 5492 + 48) and docs (699 PASS). These are intermediate-source results, not final qualification.

    Copied Unity 6000.4.6f1 reference compilation found that its NUnit surface does not provide NonParallelizableAttribute. No Unity tests executed. Retain that failed compile log and source receipts. Correct only attribute availability: preserve [NonParallelizable] in the portable build under #if !UNITY_2021_3_OR_NEWER; Unity's existing sequential runtime-test runner receives no unsupported attribute. No test, case, assertion, collection round or production behavior is conditionalized or removed.

    Before final qualification, freeze this final v4 fixture, rerun unchanged-Runtime RED and require the exact prior 16 FAIL/32 PASS identities, then rerun candidate focused/repeated/full and copied-reference scopes. Retain intermediate results as intermediate; do not overwrite the adverse compiler evidence. Runtime candidate remains the same capture removal.

  5. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    PARTIAL: the ownership defect is corrected and locally qualified in separate private commit bfb5da0, tree5f88d6b01673507d4f4df9a7d07c0c9d9058a478, parentb2fd69b2b91f560068bb7ebe07d25c82b99bd6fb. CLEAN worktree .artifacts/worktrees/472-consumed-context-map; six files, normal hooks PASS, NOT PUSHED.

    The only Runtime change removes the pooled context-map alias/capture in InternalRegisterWithContext and passes null for its existing secondary handle reference. All other81 Runtime C# files are byte-identical to b2. Handle layout/equality/hash and deregistration implementations are unchanged. No production observer, field, dependency, clock, per-emission/per-entry work or handle-size claim.

    Evidence at .artifacts/perf-lab/502-consumed-context-map-retention-s472/REPORT.md:

    • Unchanged public Fbdd and held b2 each2 FAIL/4 PASS. Exact map identity and all collection/callback controls pass. Both public failures reproduce50/50 fresh processes each:100 expected FAIL/0 unexpected.
    • Independent-observer v2 reproduces every original vector on both unchanged heads. Its exact unchanged harness on final candidate:6 PASS; all4 original passing vectors identical.
    • Final shared48 cases: actual unchanged-b2 RED16 FAIL/32 PASS/0 SKIP -> SAME final fixture48 PASS. Targeted/broadcast, old/new handle/post routes, same/different types, exact reuse/force-flush controls, copied/distinct identity/hash, duplicate cleanup, cold live counts and four unrelated graph weak references.
    • Ten fresh final focused processes480 PASS/exact48IDs each.
    • Full final portable5540 PASS/0 FAIL/0 SKIP: exact preservation of all5492 previous outcomes+48 additions. Final docs699 PASS/exact prior699.
      -16 final copied Unity6000.4.6f1 C#9 semantic-reference compilations PASS/current377 source occurrences. This is NOT native execution.
    • Separately prefrozen counterfault restores only the old capture: exact same16 failing/32 passing identities. Candidate239 owned+2 external analyzer input hashes exact after execution and normal commit hooks. All counterfault239+2 inputs exact.
    • Relevant CSharpier/Prettier/CSpell/both actual Markdown linters/validate:all/meta/CRLF/ASCII/diff/hooks PASS. JS/generator sources unchanged, suites not rerun.

    Adverse setup/compiler evidence retained: v1 CS1744 used a nonexistent Watch bus overload; corrected existing constructor before actual RED, no predicate change. v3 prospectively fixes bus clock/settings/debug inputs while preserving all48 cases/predicates. Copied-reference compilation then found Unity NUnit lacks NonParallelizableAttribute; final v4 conditionalizes only attribute availability, preserves portable scheduling and EVERY test/predicate, and reruns unchanged RED, candidate, repeats/full/docs and all16 semantic scopes. Historical v3 source is hash-exact. Counterfault setup refused an ambiguous selector, then a LF-blob/CRLF-worktree byte mismatch; neither attempted launch executed dotnet. Final exact clean-b2 bytes and all prefrozen inputs precede actual counterfault. No adverse result was replaced or expectation weakened.

    42-file human packet: .artifacts/perf-lab/session472-consumed-context-map-review/REVIEW.md. Complete public-Fbdd patch SHA256a65bfb4f7cc6d591b59db6c444c10b83f9cec1f055a27573de4d7def4758f431; separate-index replay restores exact5f88tree. Includes eight correctness corrections and existing docs/ownership tests, excludes separate deferred-retention researchc72.

    Native PREPARATION ONLY:166changed/800original/874candidate/244payloadblobs,16current semantic-source receipts. ManifestSHA25630f873962d605b0ca2a1d05187d254aad5c594d3e7d14e8ecca108289032bff0. All originals match held preparation, every blob verifies. No host operation or installation script generated/run. Fresh supported probe still JSONRPC-32002/noUnitytools. Native correctness/allocation/reclamation, supported Unity/IL2CPP, cost and human code/copy review remain OPEN; fresh scene/framework/SDK/module/source/675-pin admission and exact bytes/timestamps restoration precede native use.

    PR619 stays publicFbdd/open/draft/unmerged; four COMMENTED reviews, no APPROVED. Earlier publication question unanswered. No push/newPR/merge/adoption/approval/closure, no historical #502/#640 attribution. Main index empty/ten inherited dirty hashes exact. GOAL active.

  6. wallstop commented on Oct 26, 2026

    @wallstop
    CollaboratorAuthor

    Explicit native MemoryReclaim qualification is RED at PR619 ba7a249 (production unchanged by later683 correction). UnityBenchmarks40381878662, Unity2021 PlayMode coverage job121780065687:28053cases,27726PASS/326FAIL/1existing skip,196.09seconds. This is completed NUnit failure, not a watchdog/missing-results failure. The separate cardinality partition passes54/54 in273.37seconds.

    ConsumedContextHandleRetentionTests: 48 failures in the retained full-scope inventory. All48 consumed-handle rows report the unrelated bus/handler/token/receiver alive. Reuse and isolation controls must be compared before attributing this to the consumed handle; do not weaken collection assertions.

    Full raw ZIP/XML/everylog/category and failure inventory are retained under session479/681-partition/native/2021.3.45f1/playmode-coverage. Artifact12683735222 SHA2564cc19c602950ad969e947af1f38c5d01e93c2369876ad80c15c4c7d5a2bb3ddf, exact ba7a249 head; job log retained. All return/classification/lock-release/confirmed-cleanup steps must be verified before follow-up. Other supported partitions continue unchanged; no cancellation/retry, fixture skip, budget change or root attribution is admitted. Earlier portable passes do not establish native collection. PR619 remains draft; this outstanding acceptance gate is not closed.

  7. wallstop commented on Nov 8, 2026

    @wallstop
    CollaboratorAuthor

    Current-source native qualification protocol, following the maintainer's request to broaden this session: assess the existing MemoryReclaim contracts on the live Unity 6000.4.6f1 ARM64 Mono editor against the merged runtime plus current worktree input manifest. Preserve all historical failures, frozen-study verdicts, test assertions, controls and collection windows. This is fresh current-source qualification, not an identical restart of an old stopped experiment or attribution of its cause. Run the existing Runtime MemoryReclaim category once, retain every leaf/output and framework cleanup evidence, then stop and classify failures before choosing a new mechanism. GREEN requires all selected contracts plus cleanup; a pass qualifies only this source/backend. Evidence: ignored .artifacts/s497-native/source-inputs.json and .artifacts/unity-mcp/s497-reclamation.json with runner GUID/status/cleanup sidecars. No historical cause or native-cost conclusion is inferred from a pass.

  8. wallstop commented on Nov 8, 2026

    @wallstop
    CollaboratorAuthor

    The fresh declared current-source local screen completed with all 48 consumed-context-handle cases PASS, within 6,892 total reclamation passes and no failures/skips. Exact host, source/binary hashes, GUID, complete cleanup qualification, retained local raw and limits: #650 (comment) . This Unity 6000.4.6 ARM64 Mono result does not explain historical Windows/IL2CPP observations or qualify their native cost. Original assertions/windows and stopped-study verdicts remain unchanged; no identical retry or closure follows.

  9. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Prospective standalone collector contrast. Can the archived Unity 2021.3.45f1 Linux SGen CLI distinguish the already demonstrated consumed-handle ownership defect from unrelated fragile weak-reference controls? Use unchanged b2fd69b2 Runtime as RED and bfb5da06 as the corrected comparison, with the exact same 48-case fixture and dependencies from bfb5da06, compiled by archived Unity Roslyn. If the pair qualifies, screen draft #821 with its current equivalent fixture as a third arm. Keep the context-map reuse, explicit handle clearing, force-flush isolation, and every original assertion.

    The prospective discriminant is the original 16 retained-handle failures and 32 passing controls on RED, all 48 passing on the correction, and matching complete case inventories. Keep compile, runtime and observer refusals. If the standalone result differs, stop promotion and retain the actual cases with labels and failure sites. Archive source and binaries, hashes, Mono identity, per-case NUnit XML and raw console under .artifacts/session-goal-boehm-lifetime/. This controls the collector comparison and preserves the need for the original Boehm/Unity Play Mode attribution.

  10. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    The SGen screen reached its stop rule. Both standalone --interp arms executed all 48 exact historical fixture cases. All 96 rows reached the original final lifetime assertion with [True, True, True, True], including the cleared-handle and forced-isolation controls. The two product assemblies and the archived core library have verified runtime bindings. This configuration cannot discriminate the ownership correction.

    The same archive's Linux Editor Boehm library exports mono_main. A minimal native launcher confirmed --version reports 6.13.0 7c55ef82, x64, interpreter support and typed Boehm. Before any lifetime run through this entry point, use the same two binaries, test executable, 48 cases, measurement boundary and predicted contrast as the SGen screen. Stop on partial discovery, setup or runtime refusal, or failure of the cleared-handle or isolation controls. Retain the raw result regardless of direction. The launch scope is the archived library under QEMU with a standalone harness.

  11. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    The final verifier matched all 48 case names in both archived SGen runs. Every row reached the final weak flags [True, True, True, True], including all 16 explicit handle-clearing and all 16 forced pool-isolation controls in each arm. The clean Runtime builds had different MVIDs, and both loaded the identical NUnitLite test executable and archived core library. No candidate or draft acceptance follows from the 96 failed rows.

    The isolated SGen negative control did work. Three fresh processes without DxMessaging or NUnit each observed six full collections, retained both objects in the statically rooted pair, and cleared both objects in the unrooted pair made on the main thread and the pair made on a joined worker. This rules out an across-the-board collection or weak-reference failure for those controls. The root of the production fixture's foreign graph remains unclassified.

    The archived Linux Boehm mono_main launcher initially could not resolve System.Native. The explicit shipped config resolved $mono_libdir against Unity's original build path. A copy with only that path redirected to the archived library got through the two assembly bindings and NUnitLite startup, then stopped at a native SIGSEGV before discovery. No Boehm case result was emitted. The next discriminating evidence would be a root path from a failed observation, with a live-root and a cleared-root control, or a supported Unity-host run that can capture those paths.

    Source, builds, config diff, console, NUnit XML, crash artifacts and control runs are retained in .artifacts/session-goal-boehm-lifetime/. qualification.json SHA-256 6a660f50ae805bf2e398da7399cb32e2d58190ce5d5981e7bc80d68626aea8bb.

  12. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Prospective root-path check for the standalone SGen failure. The shipped Unity 2021.3.45f1 Linux mono exports heap-walk and root callbacks. First qualify an offline profiler against a single managed owner with a child, retained by a known strong GC handle, and a second owner whose strong handle was freed before collection. Require a reported root for the live handle, the typed owner-to-child edge, cleared weak flags and absence of the deleted handle's pair; repeat in fresh processes. Preserve collector generation, capacity counters, root registration metadata and exact runtime bindings. Stop on a missing owned edge, buffer overflow, root API refusal, or observer-induced lifetime change.

    Only after the control passes, collect a bounded snapshot around the last collection already present in one frozen failed fixture case per arm and cleared-handle/force-isolation cases. Preserve fixture predicates and observe the original weak flags before reading any target. Any recovered path will describe this SGen process. The matching Unity Play Mode root cause remains a separate requirement. Raw evidence will be retained under .artifacts/session-goal-sgen-roots/.

  13. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Root-profiler controls distinguish the live handle from the cleared worker-created pair. Three fresh profiled worker cases each report a normal SGen GC handle bucket, the live owner, and its child at the field offset confirmed by Mono metadata. The cleared owner and child are absent from the heap walk and both weak flags are false. Three unprofiled worker cases have the same weak flags. The same-thread cleared pair unexpectedly stays alive in three profiled and three unprofiled runs, with no normal GC-handle root reported for those objects. This is a retained limitation of this execution configuration.

    For the fixture capture, freeze the existing Targeted / no old post-processor / no new post-processor / different message type cell and modes 0, 1, and 2, one fresh process per arm and mode. Insert the profiler arm immediately before the sixth existing collection and dump after the four original weak reads. Compare with a fresh single-case run of the original binary. Require identical case names and weak vectors before attributing any path. If none is reported, keep that absence within the documented callback coverage.

  14. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    The six matched SGen snapshots establish a managed path from the fixture-kept HandleRoot through ContextHandlerMap, the dispatch snapshot and the registered delegate to the unrelated receiver, only in historical mode 0. The path disappears with explicit handle clearing, forced pool isolation, or the corrected Runtime. All six original and six profiled cases still reach the same four live weak flags. No reported callback root reaches the receiver in any of the six captures. Unity Mono's matching source scans interpreter frames separately from the profiler's registered-root and native-stack reports. This identifies a coverage boundary, with no direct evidence yet of the slot retaining the remaining graph.

    Prospective causal contrast. Repeat the six frozen cases, moving only the existing foreign-graph factory call to a worker that has joined before main-thread collection. Keep the live old handle, scope, all existing checks and source-bound product assemblies. Both reuse modes must still reuse exactly; forced isolation must still refuse reuse. Keep main-thread runs as the paired comparator. Predict historical mode 0 still retains the foreign graph, historical modes 1/2 and all corrected modes clear it. Stop on thread failures, changed reuse or dispatch controls, or any different lifetime pattern. Use three fresh processes per case, under .artifacts/session-goal-sgen-roots/.

  15. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    The joined-worker contrast matched all 18 declared results. Historical b2fd69b2 mode 0 retained all four objects in three fresh processes. Modes 1 and 2 each passed all three repeats. Corrected bfb5da06 passed all nine cases. Each retained the existing reuse or isolation predicate, the one delivered callback, cleanup, and exact test identity. The six ordinary main-thread comparator cases still failed. This establishes that the standalone failure control depends on the lifetime of the thread that constructs the foreign graph. It independently confirms the historical consumed-handle path and its removal. It does not identify the specific interpreter slot or classify the Unity Play Mode failure. Unity Mono interpreter stack marking

    The receipt binds the 12 seeded runs, six matched heap captures, 12 single-case main-thread results and 18 joined-worker results. .artifacts/session-goal-sgen-roots/qualification.json SHA-256 ba5bdaa33cb25a8013349c1c9d3426f5be8b5574db5f3b9ae8cab286fc43cf1a.

    Prospective current-source check. Run the same joined-worker delta across the full existing 48-case matrix on the two exact historical arms and #821 head 20ca2b37. Run each arm once per fresh process in three blocks. Require 16 mode-0 failures at the original weak assertion on the historical buggy Runtime, 32 historical controls passing, and 48 passes on each corrected arm, with matching complete case inventories. The current fixture's only test change from the historical one is its category partition. Stop at any other outcome, and keep the raw inventory. This comparison is scoped to the archived Linux SGen interpreter.

  16. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    The frozen full matrix matched all 432 case outcomes across nine fresh processes in the archived Unity 2021.3.45f1 Linux SGen interpreter. Each historical b2fd69b2 run had 16 retained-handle failures with [True, True, True, True] and 32 passing cleared-handle and force-isolation controls. Each corrected bfb5da06 and release draft 20ca2b37 run passed all 48 cases. All arms preserved the original case identities, exact reuse/isolation, one delivered callback and cleanup checks. The only fixture delta for this comparison moves foreign graph creation to a joined worker before the original collection. The draft fixture retains its current category annotations.

    This independently qualifies the consumed old-handle correction on the archived SGen path. The earlier heap walks recover the old handle-to-reused-map-to-receiver edge only in the historical failing condition. The corresponding Unity Play Mode/Boehm lifetime result, including the separate graph survival observed in ordinary main-thread runs, remains unresolved. No repository test or release source was changed. .artifacts/session-goal-sgen-roots/full-qualification.json SHA-256 72af232df169b121d3d6d91661d4672a241a67771cb5f3602924e3b551f28dca. Heap and control results

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions