MCPcopy
hub / github.com/google/gvisor / zeroValueSlice

Function zeroValueSlice

pkg/segment/set.go:2010–2016  ·  view source on GitHub ↗
(slice []Value)

Source from the content-addressed store, hash-verified

2008}
2009
2010func zeroValueSlice(slice []Value) {
2011 // TODO(jamieliu): check if Go is actually smart enough to optimize a
2012 // ClearValue that assigns nil to a memset here.
2013 for i := range slice {
2014 Functions{}.ClearValue(&slice[i])
2015 }
2016}
2017
2018func zeroNodeSlice(slice []*node) {
2019 for i := range slice {

Callers 1

rebalanceBeforeInsertMethod · 0.85

Calls 1

ClearValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…