summaryrefslogtreecommitdiffhomepage
path: root/pkg/refs/refcounter.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-05 01:23:10 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-05 01:23:10 +0000
commit4fbe1cc8b9fc8d371bbf69a71103a991f07ebe5e (patch)
treef79ed4c824c107d28037c8bce465b4c661008935 /pkg/refs/refcounter.go
parentd064e8d6dfe4785f64f768bda985ce421fa234b7 (diff)
parentb44408b40e3e8762a77ccf5eeb7f2ef567235c43 (diff)
Merge release-20200622.1-333-gb44408b40 (automated)
Diffstat (limited to 'pkg/refs/refcounter.go')
-rw-r--r--pkg/refs/refcounter.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go
index 3f39edb66..61790221b 100644
--- a/pkg/refs/refcounter.go
+++ b/pkg/refs/refcounter.go
@@ -215,8 +215,6 @@ type AtomicRefCount struct {
// LeakMode configures the leak checker.
type LeakMode uint32
-// TODO(gvisor.dev/issue/1624): Simplify down to two modes once vfs1 ref
-// counting is gone.
const (
// UninitializedLeakChecking indicates that the leak checker has not yet been initialized.
UninitializedLeakChecking LeakMode = iota
@@ -246,11 +244,6 @@ func SetLeakMode(mode LeakMode) {
atomic.StoreUint32(&leakMode, uint32(mode))
}
-// GetLeakMode returns the current leak mode.
-func GetLeakMode() LeakMode {
- return LeakMode(atomic.LoadUint32(&leakMode))
-}
-
const maxStackFrames = 40
type fileLine struct {