Skip to content

Session segmentation launcher - #140

Merged
CodingInAVan merged 3 commits into
mainfrom
session-segmentation-launcher
Jul 30, 2026
Merged

Session segmentation launcher#140
CodingInAVan merged 3 commits into
mainfrom
session-segmentation-launcher

Conversation

@CodingInAVan

Copy link
Copy Markdown
Contributor

Description

  • Add time- and row-based SegmentCoordinator
  • Rotate immutable segment contexts without restarting CUPTI
  • Preserve dictionaries, scope continuations, deep-window state, and run-global IDs
  • Add asynchronous segment retirement and lifecycle events
  • Replace implicit owner counting with explicit writer leases and bounded drain timeout
  • Separate writer acquisition from check-only context liveness

Type of Change

  • Bug fix
  • New feature
  • Documentation update

Testing

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Add SegmentCoordinator and immutable per-segment contexts, rotate log ownership without restarting CUPTI, preserve dictionaries and scope continuations, and emit segment lifecycle snapshots.

Use explicit move-only writer leases for the cutover drain barrier. Publication seals the retiring context before exposing the next one; retirement waits with a bounded timeout and leaves an honest incomplete segment instead of hanging teardown or closing under a live writer.
Add Runtime::hasSegmentContext for check-only paths so they no longer manufacture short-lived writer leases. Keep explicit writer accounting for real serialization paths and document why use_count was safe from premature close but unable to express producer ownership.
@CodingInAVan
CodingInAVan merged commit d616c81 into main Jul 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant