diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-29 14:17:32 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-29 14:17:32 -0700 |
commit | 0789b9cc08249f8d0d6efcb25029efd271e47a9d (patch) | |
tree | 7da78fcee0c9026f9e3b0046e2ff586117537fd1 /pkg | |
parent | eb4aa40342826451a70db5eda137f2731f750607 (diff) | |
parent | 7672eaae25eebad650e71ba790e1585736866ccc (diff) |
Merge pull request #655 from praveensastry:feature/runsc-ref-chk-leak
PiperOrigin-RevId: 266226714
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/refs/refcounter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go index 828e9b5c1..ad69e0757 100644 --- a/pkg/refs/refcounter.go +++ b/pkg/refs/refcounter.go @@ -215,8 +215,8 @@ type AtomicRefCount struct { type LeakMode uint32 const ( - // uninitializedLeakChecking indicates that the leak checker has not yet been initialized. - uninitializedLeakChecking LeakMode = iota + // UninitializedLeakChecking indicates that the leak checker has not yet been initialized. + UninitializedLeakChecking LeakMode = iota // NoLeakChecking indicates that no effort should be made to check for // leaks. @@ -318,7 +318,7 @@ func (r *AtomicRefCount) finalize() { switch LeakMode(atomic.LoadUint32(&leakMode)) { case NoLeakChecking: return - case uninitializedLeakChecking: + case UninitializedLeakChecking: note = "(Leak checker uninitialized): " } if n := r.ReadRefs(); n != 0 { |