From bc7a162f20a62d4f2ac0ba4908e67689e1ee2c5c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Mar 2026 16:46:37 +0200 Subject: refactor: make livetrie caller-owned for pair recycling (task 382) --- internal/flamegraph/livetrie.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/flamegraph') diff --git a/internal/flamegraph/livetrie.go b/internal/flamegraph/livetrie.go index 794b790..600e404 100644 --- a/internal/flamegraph/livetrie.go +++ b/internal/flamegraph/livetrie.go @@ -77,11 +77,10 @@ func (lt *LiveTrie) invalidateCache() { lt.cacheMu.Unlock() } -// Ingest adds one event pair into the live trie and recycles the pair. +// Ingest adds one event pair into the live trie. func (lt *LiveTrie) Ingest(ep *event.Pair) { record := eventPairToRecord(ep) lt.AddRecord(record) - ep.Recycle() } // AddRecord adds one already-decoded flamegraph record into the live trie. -- cgit v1.2.3