Skip to content

Commit b051f31

Browse files
authored
[CWS] remove runtime.GC call after snapshot (#33099)
1 parent 5b40f43 commit b051f31

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/security/probe/probe_ebpf.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"net"
1717
"os"
1818
"path/filepath"
19-
"runtime"
2019
"slices"
2120
"strings"
2221
"sync"
@@ -1676,8 +1675,6 @@ func (p *EBPFProbe) RefreshUserCache(containerID containerutils.ContainerID) err
16761675
// Snapshot runs the different snapshot functions of the resolvers that
16771676
// require to sync with the current state of the system
16781677
func (p *EBPFProbe) Snapshot() error {
1679-
// the snapshot for the read of a lot of file which can allocate a lot of memory.
1680-
defer runtime.GC()
16811678
return p.Resolvers.Snapshot()
16821679
}
16831680

0 commit comments

Comments
 (0)