scripts: free what a stopped script held (SCRIPTS.md slice 6, the teardown) #754
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#754
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The status line of
docs/design/SCRIPTS.md(lines 4 and 17) says the sandbox's own heap of slice 6 is in and "the teardown that frees what a stopped script held is not built (section 6)". No open issue tracks the teardown. A host that loads and stops scripts repeatedly (the use the record is written for) leaks every stopped script's heap.Source
docs/project/2026-11-cleanup-audit.md.docs/design/SCRIPTS.mdstatus line and section 6.Goal
Stopping a script releases everything its sandbox heap held, on every back end that runs scripts, and a test shows a host that loads and stops a script many times stays at a constant heap.
Design record point
docs/design/SCRIPTS.mdsection 6 (the heap of a sandbox and its teardown), section 9.Acceptance criteria
Dependencies
None known; if section 6 waits on a gap of
docs/design/RESOURCES.md(#99, #138), name it when the issue is refined.Seed
None.
Size
One PR, one or two commits.