Anton Panasenko
fcdae21073
Support metadata staging for reserved thread IDs ( #38819 )
...
## Why
Callers need to associate host-owned state with a thread before Core starts it.
## What changed
- Add `ThreadManager::reserve_thread_id` and allow new threads to start with the reserved ID. Reject reserved IDs when resuming an existing thread.
- Let thread stores stage metadata for a reserved ID. The local store merges staged values into the first successful metadata update and then removes them.
- Clear staged metadata when an unmaterialized thread shuts down or is discarded, and require the state database for staging.
## Testing
- Cover reserved ID generation and resume validation.
- Cover metadata persistence, merging, rollout-compatible updates, cleanup, and invalid staging requests.
GitOrigin-RevId: 3f9bc48f0f7764011cc90ea01349e497dda0a9e3
2026-08-16 00:57:28 +00:00
..
2026-08-14 02:32:05 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-10 16:57:09 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 07:52:38 +00:00
2026-08-14 07:52:38 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 15:24:10 +00:00
2026-08-14 18:26:20 +00:00
2026-07-09 03:40:08 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 05:49:33 +00:00
2026-08-11 01:05:48 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 22:40:19 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 18:26:20 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 22:21:18 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 21:53:52 +00:00
2026-08-13 00:00:16 +00:00
2026-06-19 05:35:57 -07:00
2026-08-13 00:00:16 +00:00
2026-06-18 14:09:38 +02:00
2026-08-13 00:00:16 +00:00
2026-08-12 22:04:27 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-15 01:24:46 +00:00
2026-08-12 03:00:47 +00:00
2026-08-13 15:23:09 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-06-15 21:53:47 -07:00
2026-08-13 00:00:16 +00:00
2026-08-13 20:20:01 +00:00
2026-08-04 15:23:43 +00:00
2026-08-13 22:42:12 +00:00
2026-08-14 18:35:13 +00:00
2026-08-15 00:24:25 +00:00
2026-08-14 04:46:04 +00:00
2026-08-13 23:13:37 +00:00
2026-05-18 21:03:51 -07:00
2026-08-13 00:00:16 +00:00
2026-08-15 16:58:08 +00:00
2026-08-14 07:52:38 +00:00
2026-08-14 18:26:20 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 18:26:20 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 07:52:38 +00:00
2026-08-14 07:52:38 +00:00
2026-08-13 18:36:12 +00:00
2026-08-13 02:40:49 +00:00
2026-06-08 13:55:15 -07:00
2026-08-13 00:00:16 +00:00
2026-08-14 18:26:20 +00:00
2026-08-14 18:26:20 +00:00
2026-08-14 02:54:38 +00:00
2026-07-14 10:37:23 +00:00
2026-08-14 19:07:15 +00:00
2026-07-22 20:23:35 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-01 01:17:26 +00:00
2026-08-15 01:39:04 +00:00
2026-08-14 18:26:20 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-15 05:09:19 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 05:49:33 +00:00
2026-07-22 00:50:28 +00:00
2026-08-10 19:26:52 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 23:13:37 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 05:49:33 +00:00
2026-08-13 00:00:16 +00:00
2026-07-23 19:19:35 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-07-31 15:34:03 +00:00
2026-06-23 14:27:13 -07:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 18:30:51 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 18:26:20 +00:00
2026-08-16 00:57:28 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 18:26:20 +00:00
2026-08-13 22:21:18 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 12:21:08 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 19:25:05 +00:00
2026-08-07 22:41:20 +00:00
2026-08-14 07:52:38 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-10 19:26:52 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 07:52:38 +00:00
2026-08-14 01:23:59 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-14 22:28:33 +00:00
2026-08-05 06:38:57 +00:00