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

Method init

pkg/sentry/kernel/fd_table_unsafe.go:46–50  ·  view source on GitHub ↗

init initializes the table with leak checking.

()

Source from the content-addressed store, hash-verified

44
45// init initializes the table with leak checking.
46func (f *FDTable) init() {
47 f.initNoLeakCheck()
48 f.InitRefs()
49 f.fdBitmap = bitmap.New(uint32(math.MaxUint16))
50}
51
52const (
53 // fdsPerBucketShift is chosen in such a way that the size of bucket is

Callers 3

NewFDTableMethod · 0.95
runTestFunction · 0.45
BenchmarkCreateWithMaxFDFunction · 0.45

Calls 3

initNoLeakCheckMethod · 0.95
NewFunction · 0.92
InitRefsMethod · 0.80

Tested by 2

runTestFunction · 0.36
BenchmarkCreateWithMaxFDFunction · 0.36