From 9cfdfc9de839b9d726bc8c4cbbaa7ad7beb1da07 Mon Sep 17 00:00:00 2001 From: JianFeeeee Date: Thu, 10 Sep 2026 15:49:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(shm):=20arena=20+=20ContextPolicy(=C2=A713?= =?UTF-8?q?.2/=C2=A713.8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - unified.go: arena 分配器 (alloc/write/read/reset) - NewHost: 分配空间含 arena - SDK ToolDef 加 ContextPolicy string - StageAfterToolcall 后检查 prune 策略触发 RelevanceContext.Prune --- internal/plugin/proc/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/proc/host.go b/internal/plugin/proc/host.go index 8c94103..4620aaf 100644 --- a/internal/plugin/proc/host.go +++ b/internal/plugin/proc/host.go @@ -53,7 +53,7 @@ type Host struct { // (实验 2 已验证各进程 mmap 到不同虚拟地址时偏移解引用仍正确)。 func NewHost() (*Host, error) { // 统一区域大小:SuperBlock + StageContext segment + EvtRing segment - unifiedSize := superBlockSize + shmDefaultSize + evtTotalSize + unifiedSize := superBlockSize + shmDefaultSize + evtTotalSize + unifiedArenaSize memfd, data, err := allocShm(unifiedSize) if err != nil { return nil, err