YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/gutil/ref_counted.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
//
5
// The following only applies to changes made to this file as part of YugaByte development.
6
//
7
// Portions Copyright (c) YugaByte, Inc.
8
//
9
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
10
// in compliance with the License.  You may obtain a copy of the License at
11
//
12
// http://www.apache.org/licenses/LICENSE-2.0
13
//
14
// Unless required by applicable law or agreed to in writing, software distributed under the License
15
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
16
// or implied.  See the License for the specific language governing permissions and limitations
17
// under the License.
18
//
19
20
#ifndef YB_GUTIL_REF_COUNTED_H
21
#define YB_GUTIL_REF_COUNTED_H
22
23
#include <atomic>
24
#include <ostream>
25
#include <utility>
26
27
#ifndef NDEBUG
28
#include <string>
29
#endif
30
31
#include <typeinfo>
32
33
#include "yb/gutil/atomicops.h"
34
#include "yb/gutil/port.h"
35
#include "yb/gutil/threading/thread_collision_warner.h"
36
37
namespace yb {
38
namespace subtle {
39
40
// TODO: switch to std::atomic<int32_t>
41
typedef std::atomic<intptr_t> AtomicRefCount;
42
43
class RefCountedBase {
44
 public:
45
0
  bool HasOneRef() const { return ref_count_ == 1; }
46
47
 protected:
48
  RefCountedBase();
49
  ~RefCountedBase();
50
51
  void AddRef() const;
52
53
  // Returns true if the object should self-delete.
54
  bool Release() const;
55
56
#ifndef NDEBUG
57
0
  intptr_t GetRefCountForDebugging() const { return ref_count_; }
58
#endif
59
60
 private:
61
  mutable intptr_t ref_count_;
62
#ifndef NDEBUG
63
  mutable bool in_dtor_;
64
#endif
65
66
  DFAKE_MUTEX(add_release_);
67
68
  DISALLOW_COPY_AND_ASSIGN(RefCountedBase);
69
};
70
71
class RefCountedThreadSafeBase {
72
 public:
73
  bool HasOneRef() const;
74
75
 protected:
76
432M
  RefCountedThreadSafeBase() = default;
77
  ~RefCountedThreadSafeBase();
78
79
  void AddRef() const;
80
81
  // Returns true if the object should self-delete.
82
  bool Release() const;
83
84
#ifndef NDEBUG
85
0
  intptr_t GetRefCountForDebugging() const {
86
0
    return ref_count_.load(std::memory_order_relaxed);
87
0
  }
88
#endif
89
90
 private:
91
  mutable AtomicRefCount ref_count_{0};
92
#ifndef NDEBUG
93
  mutable bool in_dtor_ = false;
94
#endif
95
96
  DISALLOW_COPY_AND_ASSIGN(RefCountedThreadSafeBase);
97
};
98
99
// ------------------------------------------------------------------------------------------------
100
// A facility for debugging where exactly reference counts are incremented and decremented.
101
102
#ifdef NDEBUG
103
104
// No-op in release mode.
105
#define INVOKE_REF_COUNTED_DEBUG_HOOK(event_type)
106
107
#else
108
109
extern bool g_ref_counted_debug_enabled;
110
111
// This callback is called for type names matching the regex to do the actual reporting of refcount
112
// increase/decrease.
113
// Parameters: type name, instance pointer, current refcount, refcount delta (+1 or -1).
114
typedef void RefCountedDebugFn(const char*, const void*, int64_t, int64_t);
115
116
// Configure logging on reference count increments/decrements.
117
// type_name_regex - regular expression for type names that we'll be logging for.
118
// debug_fn - a function to log a refcount increment/decrement event.
119
void InitRefCountedDebugging(const std::string& type_name_regex, RefCountedDebugFn* debug_fn);
120
121
void RefCountedDebugHook(const char* type_name,
122
                         const void* this_ptr,
123
                         int64_t current_refcount,
124
                         int64_t ref_delta);
125
126
#define INVOKE_REF_COUNTED_DEBUG_HOOK(ref_delta) \
127
5.87G
    do { \
128
5.87G
      if (subtle::g_ref_counted_debug_enabled) { \
129
0
        subtle::RefCountedDebugHook(typeid(*this).name(), this, GetRefCountForDebugging(), \
130
0
                                    ref_delta); \
131
0
      } \
132
5.87G
    } while (0)
133
134
#endif
135
136
}  // namespace subtle
137
138
//
139
// A base class for reference counted classes.  Otherwise, known as a cheap
140
// knock-off of WebKit's RefCounted<T> class.  To use this guy just extend your
141
// class from it like so:
142
//
143
//   class MyFoo : public RefCounted<MyFoo> {
144
//    ...
145
//    private:
146
//     friend class RefCounted<MyFoo>;
147
//     ~MyFoo();
148
//   };
149
//
150
// You should always make your destructor private, to avoid any code deleting
151
// the object accidentally while there are references to it.ging();
152
template <class T>
153
class RefCounted : public subtle::RefCountedBase {
154
 public:
155
  RefCounted() {}
156
157
  void AddRef() const {
158
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
159
    subtle::RefCountedBase::AddRef();
160
  }
161
162
  void Release() const {
163
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
164
    if (subtle::RefCountedBase::Release()) {
165
      delete static_cast<const T*>(this);
166
    }
167
  }
168
169
 protected:
170
  ~RefCounted() {}
171
172
 private:
173
  DISALLOW_COPY_AND_ASSIGN(RefCounted<T>);
174
};
175
176
// Forward declaration.
177
template <class T, typename Traits> class RefCountedThreadSafe;
178
179
// Default traits for RefCountedThreadSafe<T>.  Deletes the object when its ref
180
// count reaches 0.  Overload to delete it on a different thread etc.
181
template<typename T>
182
struct DefaultRefCountedThreadSafeTraits {
183
396M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
396M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
396M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity>::Destruct(yb::MetricEntity const*)
Line
Count
Source
183
14.0k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
14.0k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
14.0k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex>::Destruct(yb::log::LogIndex const*)
Line
Count
Source
183
76.2k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
76.2k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
76.2k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment>::Destruct(yb::log::ReadableLogSegment const*)
Line
Count
Source
183
177k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
177k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
177k
  }
Unexecuted instantiation: yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat>::Destruct(yb::debug::ConvertableToTraceFormat const*)
yb::DefaultRefCountedThreadSafeTraits<yb::log::Log>::Destruct(yb::log::Log const*)
Line
Count
Source
183
75.0k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
75.0k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
75.0k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::Metric>::Destruct(yb::Metric const*)
Line
Count
Source
183
2.93M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
2.93M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
2.93M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase>::Destruct(yb::internal::BindStateBase const*)
Line
Count
Source
183
86.0M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
86.0M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
86.0M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase>::Destruct(yb::ClockBase const*)
Line
Count
Source
183
6.95k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
6.95k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
6.95k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo>::Destruct(yb::master::TableInfo const*)
Line
Count
Source
183
3.71k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
3.71k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
3.71k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo>::Destruct(yb::master::TabletInfo const*)
Line
Count
Source
183
2.17k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
2.17k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
2.17k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext>::Destruct(yb::redisserver::BatchContext const*)
Line
Count
Source
183
209k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
209k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
209k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet>::Destruct(yb::client::internal::RemoteTablet const*)
Line
Count
Source
183
71
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
71
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
71
  }
yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService>::Destruct(yb::rpc::RpcService const*)
Line
Count
Source
183
2.23k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
2.23k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
2.23k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::Thread>::Destruct(yb::Thread const*)
Line
Count
Source
183
910k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
910k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
910k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata>::Destruct(yb::tablet::RaftGroupMetadata const*)
Line
Count
Source
183
83.1k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
83.1k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
83.1k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession>::Destruct(yb::tserver::RemoteBootstrapSession const*)
Line
Count
Source
183
1.95k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
1.95k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
1.95k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::Trace>::Destruct(yb::Trace const*)
Line
Count
Source
183
258M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
258M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
258M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter>::Destruct(yb::tserver::TransitionInProgressDeleter const*)
Line
Count
Source
183
217k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
217k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
217k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry>::Destruct(yb::log::LogAnchorRegistry const*)
Line
Count
Source
183
74.7k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
74.7k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
74.7k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver>::Destruct(yb::tablet::OperationDriver const*)
Line
Count
Source
183
31.4M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
31.4M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
31.4M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound>::Destruct(yb::consensus::ConsensusRound const*)
Line
Count
Source
183
14.5M
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
14.5M
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
14.5M
  }
yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection>::Destruct(yb::consensus::LeaderElection const*)
Line
Count
Source
183
737k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
737k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
737k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo>::Destruct(yb::master::NamespaceInfo const*)
Line
Count
Source
183
1.88k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
1.88k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
1.88k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo>::Destruct(yb::master::SysConfigInfo const*)
Line
Count
Source
183
2.54k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
2.54k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
2.54k
  }
Unexecuted instantiation: yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo>::Destruct(yb::master::SnapshotInfo const*)
yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo>::Destruct(yb::master::CDCStreamInfo const*)
Line
Count
Source
183
69
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
69
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
69
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo>::Destruct(yb::master::UniverseReplicationInfo const*)
Line
Count
Source
183
2
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
2
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
2
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo>::Destruct(yb::master::RoleInfo const*)
Line
Count
Source
183
829
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
829
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
829
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker>::Destruct(yb::master::TasksTracker const*)
Line
Count
Source
183
183
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
183
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
183
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo>::Destruct(yb::master::UDTypeInfo const*)
Line
Count
Source
183
48
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
48
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
48
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo>::Destruct(yb::master::TablegroupInfo const*)
Line
Count
Source
183
53
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
53
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
53
  }
yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo>::Destruct(yb::master::RedisConfigInfo const*)
Line
Count
Source
183
7
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
7
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
7
  }
Unexecuted instantiation: yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo>::Destruct(yb::master::DeletedTableInfo const*)
yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache>::Destruct(yb::client::internal::MetaCache const*)
Line
Count
Source
183
691
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
691
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
691
  }
yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter>::Destruct(yb::tools::ChecksumResultReporter const*)
Line
Count
Source
183
658
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
658
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
658
  }
yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc>::Destruct(yb::pggate::PgTableDesc const*)
Line
Count
Source
183
191k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
191k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
191k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession>::Destruct(yb::pggate::PgSession const*)
Line
Count
Source
183
6.06k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
6.06k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
6.06k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager>::Destruct(yb::pggate::PgTxnManager const*)
Line
Count
Source
183
6.06k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
6.06k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
6.06k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon>::Destruct(yb::ExternalDaemon const*)
Line
Count
Source
183
1.50k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
1.50k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
1.50k
  }
yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory>::Destruct(yb::RefCountedMemory const*)
Line
Count
Source
183
362
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
362
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
362
  }
yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector>::Destruct(yb::FailureDetector const*)
Line
Count
Source
183
1
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
1
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
1
  }
yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk>::Destruct(yb::log::LogIndex::IndexChunk const*)
Line
Count
Source
183
76.3k
  static void Destruct(const T* x) {
184
    // Delete through RefCountedThreadSafe to make child classes only need to be
185
    // friend with RefCountedThreadSafe instead of this struct, which is an
186
    // implementation detail.
187
76.3k
    RefCountedThreadSafe<T, DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
188
76.3k
  }
189
};
190
191
//
192
// A thread-safe variant of RefCounted<T>
193
//
194
//   class MyFoo : public RefCountedThreadSafe<MyFoo> {
195
//    ...
196
//   };
197
//
198
// If you're using the default trait, then you should add compile time
199
// asserts that no one else is deleting your object.  i.e.
200
//    private:
201
//     friend class RefCountedThreadSafe<MyFoo>;
202
//     ~MyFoo();
203
template <class T, typename Traits = DefaultRefCountedThreadSafeTraits<T> >
204
class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase {
205
 public:
206
432M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::ClockBase, yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase> >::RefCountedThreadSafe()
Line
Count
Source
206
27.3k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::internal::BindStateBase, yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase> >::RefCountedThreadSafe()
Line
Count
Source
206
86.5M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::redisserver::BatchContext, yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext> >::RefCountedThreadSafe()
Line
Count
Source
206
209k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tserver::RemoteBootstrapSession, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession> >::RefCountedThreadSafe()
Line
Count
Source
206
2.03k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tserver::TransitionInProgressDeleter, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter> >::RefCountedThreadSafe()
Line
Count
Source
206
217k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::RefCountedMemory, yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory> >::RefCountedThreadSafe()
Line
Count
Source
206
363
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tablet::OperationDriver, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver> >::RefCountedThreadSafe()
Line
Count
Source
206
31.4M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tablet::RaftGroupMetadata, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata> >::RefCountedThreadSafe()
Line
Count
Source
206
159k
  RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::rpc::RpcService, yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService> >::RefCountedThreadSafe()
Line
Count
Source
206
209k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::consensus::ConsensusRound, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound> >::RefCountedThreadSafe()
Line
Count
Source
206
14.5M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::consensus::LeaderElection, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection> >::RefCountedThreadSafe()
Line
Count
Source
206
737k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::SysConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
11.2k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::RedisConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
189
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TabletInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
100k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
499k
  RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::DeletedTableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo> >::RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::master::NamespaceInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
15.5k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TablegroupInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
57
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::UDTypeInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
48
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::RoleInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
3.76k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TasksTracker, yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker> >::RefCountedThreadSafe()
Line
Count
Source
206
16.1k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::UniverseReplicationInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
4
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::CDCStreamInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo> >::RefCountedThreadSafe()
Line
Count
Source
206
312
  RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::client::internal::RemoteTablet, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet> >::RefCountedThreadSafe()
Line
Count
Source
206
90.3k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::client::internal::MetaCache, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache> >::RefCountedThreadSafe()
Line
Count
Source
206
30.7k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tools::ChecksumResultReporter, yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter> >::RefCountedThreadSafe()
Line
Count
Source
206
658
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgSession, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession> >::RefCountedThreadSafe()
Line
Count
Source
206
6.09k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgTableDesc, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc> >::RefCountedThreadSafe()
Line
Count
Source
206
191k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgTxnManager, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager> >::RefCountedThreadSafe()
Line
Count
Source
206
6.08k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::ExternalDaemon, yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon> >::RefCountedThreadSafe()
Line
Count
Source
206
1.94k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::FailureDetector, yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector> >::RefCountedThreadSafe()
Line
Count
Source
206
1
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::MetricEntity, yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity> >::RefCountedThreadSafe()
Line
Count
Source
206
223k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Metric, yb::DefaultRefCountedThreadSafeTraits<yb::Metric> >::RefCountedThreadSafe()
Line
Count
Source
206
35.9M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Thread, yb::DefaultRefCountedThreadSafeTraits<yb::Thread> >::RefCountedThreadSafe()
Line
Count
Source
206
1.88M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Trace, yb::DefaultRefCountedThreadSafeTraits<yb::Trace> >::RefCountedThreadSafe()
Line
Count
Source
206
258M
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::ReadableLogSegment, yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment> >::RefCountedThreadSafe()
Line
Count
Source
206
255k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::Log, yb::DefaultRefCountedThreadSafeTraits<yb::log::Log> >::RefCountedThreadSafe()
Line
Count
Source
206
151k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogAnchorRegistry, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry> >::RefCountedThreadSafe()
Line
Count
Source
206
150k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogIndex::IndexChunk, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk> >::RefCountedThreadSafe()
Line
Count
Source
206
150k
  RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogIndex, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex> >::RefCountedThreadSafe()
Line
Count
Source
206
151k
  RefCountedThreadSafe() {}
207
208
2.97G
  void AddRef() const {
209
2.97G
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
2.97G
    subtle::RefCountedThreadSafeBase::AddRef();
211
2.97G
  }
yb::RefCountedThreadSafe<yb::log::LogIndex, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex> >::AddRef() const
Line
Count
Source
208
302k
  void AddRef() const {
209
302k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
302k
    subtle::RefCountedThreadSafeBase::AddRef();
211
302k
  }
yb::RefCountedThreadSafe<yb::MetricEntity, yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity> >::AddRef() const
Line
Count
Source
208
32.9M
  void AddRef() const {
209
32.9M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
32.9M
    subtle::RefCountedThreadSafeBase::AddRef();
211
32.9M
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::AddRef() const
yb::RefCountedThreadSafe<yb::Metric, yb::DefaultRefCountedThreadSafeTraits<yb::Metric> >::AddRef() const
Line
Count
Source
208
774M
  void AddRef() const {
209
774M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
774M
    subtle::RefCountedThreadSafeBase::AddRef();
211
774M
  }
yb::RefCountedThreadSafe<yb::internal::BindStateBase, yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase> >::AddRef() const
Line
Count
Source
208
315M
  void AddRef() const {
209
315M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
315M
    subtle::RefCountedThreadSafeBase::AddRef();
211
315M
  }
yb::RefCountedThreadSafe<yb::ClockBase, yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase> >::AddRef() const
Line
Count
Source
208
37.3M
  void AddRef() const {
209
37.3M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
37.3M
    subtle::RefCountedThreadSafeBase::AddRef();
211
37.3M
  }
yb::RefCountedThreadSafe<yb::master::TabletInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo> >::AddRef() const
Line
Count
Source
208
148M
  void AddRef() const {
209
148M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
148M
    subtle::RefCountedThreadSafeBase::AddRef();
211
148M
  }
yb::RefCountedThreadSafe<yb::redisserver::BatchContext, yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext> >::AddRef() const
Line
Count
Source
208
6.66M
  void AddRef() const {
209
6.66M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
6.66M
    subtle::RefCountedThreadSafeBase::AddRef();
211
6.66M
  }
yb::RefCountedThreadSafe<yb::client::internal::RemoteTablet, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet> >::AddRef() const
Line
Count
Source
208
166M
  void AddRef() const {
209
166M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
166M
    subtle::RefCountedThreadSafeBase::AddRef();
211
166M
  }
yb::RefCountedThreadSafe<yb::rpc::RpcService, yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService> >::AddRef() const
Line
Count
Source
208
3.17M
  void AddRef() const {
209
3.17M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
3.17M
    subtle::RefCountedThreadSafeBase::AddRef();
211
3.17M
  }
yb::RefCountedThreadSafe<yb::Thread, yb::DefaultRefCountedThreadSafeTraits<yb::Thread> >::AddRef() const
Line
Count
Source
208
5.80M
  void AddRef() const {
209
5.80M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
5.80M
    subtle::RefCountedThreadSafeBase::AddRef();
211
5.80M
  }
yb::RefCountedThreadSafe<yb::tablet::RaftGroupMetadata, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata> >::AddRef() const
Line
Count
Source
208
1.44M
  void AddRef() const {
209
1.44M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
1.44M
    subtle::RefCountedThreadSafeBase::AddRef();
211
1.44M
  }
yb::RefCountedThreadSafe<yb::tserver::RemoteBootstrapSession, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession> >::AddRef() const
Line
Count
Source
208
17.4k
  void AddRef() const {
209
17.4k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
17.4k
    subtle::RefCountedThreadSafeBase::AddRef();
211
17.4k
  }
yb::RefCountedThreadSafe<yb::Trace, yb::DefaultRefCountedThreadSafeTraits<yb::Trace> >::AddRef() const
Line
Count
Source
208
362M
  void AddRef() const {
209
362M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
362M
    subtle::RefCountedThreadSafeBase::AddRef();
211
362M
  }
yb::RefCountedThreadSafe<yb::tserver::TransitionInProgressDeleter, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter> >::AddRef() const
Line
Count
Source
208
358k
  void AddRef() const {
209
358k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
358k
    subtle::RefCountedThreadSafeBase::AddRef();
211
358k
  }
yb::RefCountedThreadSafe<yb::log::LogAnchorRegistry, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry> >::AddRef() const
Line
Count
Source
208
753k
  void AddRef() const {
209
753k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
753k
    subtle::RefCountedThreadSafeBase::AddRef();
211
753k
  }
yb::RefCountedThreadSafe<yb::log::Log, yb::DefaultRefCountedThreadSafeTraits<yb::log::Log> >::AddRef() const
Line
Count
Source
208
1.05M
  void AddRef() const {
209
1.05M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
1.05M
    subtle::RefCountedThreadSafeBase::AddRef();
211
1.05M
  }
yb::RefCountedThreadSafe<yb::tablet::OperationDriver, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver> >::AddRef() const
Line
Count
Source
208
141M
  void AddRef() const {
209
141M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
141M
    subtle::RefCountedThreadSafeBase::AddRef();
211
141M
  }
yb::RefCountedThreadSafe<yb::consensus::ConsensusRound, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound> >::AddRef() const
Line
Count
Source
208
80.8M
  void AddRef() const {
209
80.8M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
80.8M
    subtle::RefCountedThreadSafeBase::AddRef();
211
80.8M
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::AddRef() const
yb::RefCountedThreadSafe<yb::consensus::LeaderElection, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection> >::AddRef() const
Line
Count
Source
208
5.84M
  void AddRef() const {
209
5.84M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
5.84M
    subtle::RefCountedThreadSafeBase::AddRef();
211
5.84M
  }
yb::RefCountedThreadSafe<yb::master::TableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo> >::AddRef() const
Line
Count
Source
208
739M
  void AddRef() const {
209
739M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
739M
    subtle::RefCountedThreadSafeBase::AddRef();
211
739M
  }
yb::RefCountedThreadSafe<yb::master::NamespaceInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo> >::AddRef() const
Line
Count
Source
208
1.35M
  void AddRef() const {
209
1.35M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
1.35M
    subtle::RefCountedThreadSafeBase::AddRef();
211
1.35M
  }
yb::RefCountedThreadSafe<yb::master::SysConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo> >::AddRef() const
Line
Count
Source
208
11.2k
  void AddRef() const {
209
11.2k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
11.2k
    subtle::RefCountedThreadSafeBase::AddRef();
211
11.2k
  }
yb::RefCountedThreadSafe<yb::master::TasksTracker, yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker> >::AddRef() const
Line
Count
Source
208
1.01M
  void AddRef() const {
209
1.01M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
1.01M
    subtle::RefCountedThreadSafeBase::AddRef();
211
1.01M
  }
yb::RefCountedThreadSafe<yb::master::UDTypeInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo> >::AddRef() const
Line
Count
Source
208
732
  void AddRef() const {
209
732
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
732
    subtle::RefCountedThreadSafeBase::AddRef();
211
732
  }
yb::RefCountedThreadSafe<yb::master::TablegroupInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo> >::AddRef() const
Line
Count
Source
208
331
  void AddRef() const {
209
331
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
331
    subtle::RefCountedThreadSafeBase::AddRef();
211
331
  }
yb::RefCountedThreadSafe<yb::master::RedisConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo> >::AddRef() const
Line
Count
Source
208
726
  void AddRef() const {
209
726
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
726
    subtle::RefCountedThreadSafeBase::AddRef();
211
726
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::DeletedTableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo> >::AddRef() const
yb::RefCountedThreadSafe<yb::master::RoleInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo> >::AddRef() const
Line
Count
Source
208
48.0k
  void AddRef() const {
209
48.0k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
48.0k
    subtle::RefCountedThreadSafeBase::AddRef();
211
48.0k
  }
yb::RefCountedThreadSafe<yb::master::CDCStreamInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo> >::AddRef() const
Line
Count
Source
208
11.5k
  void AddRef() const {
209
11.5k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
11.5k
    subtle::RefCountedThreadSafeBase::AddRef();
211
11.5k
  }
yb::RefCountedThreadSafe<yb::master::UniverseReplicationInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo> >::AddRef() const
Line
Count
Source
208
6
  void AddRef() const {
209
6
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
6
    subtle::RefCountedThreadSafeBase::AddRef();
211
6
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::AddRef() const
yb::RefCountedThreadSafe<yb::client::internal::MetaCache, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache> >::AddRef() const
Line
Count
Source
208
169k
  void AddRef() const {
209
169k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
169k
    subtle::RefCountedThreadSafeBase::AddRef();
211
169k
  }
yb::RefCountedThreadSafe<yb::tools::ChecksumResultReporter, yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter> >::AddRef() const
Line
Count
Source
208
9.40k
  void AddRef() const {
209
9.40k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
9.40k
    subtle::RefCountedThreadSafeBase::AddRef();
211
9.40k
  }
yb::RefCountedThreadSafe<yb::pggate::PgTableDesc, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc> >::AddRef() const
Line
Count
Source
208
46.6M
  void AddRef() const {
209
46.6M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
46.6M
    subtle::RefCountedThreadSafeBase::AddRef();
211
46.6M
  }
yb::RefCountedThreadSafe<yb::pggate::PgTxnManager, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager> >::AddRef() const
Line
Count
Source
208
12.1k
  void AddRef() const {
209
12.1k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
12.1k
    subtle::RefCountedThreadSafeBase::AddRef();
211
12.1k
  }
yb::RefCountedThreadSafe<yb::pggate::PgSession, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession> >::AddRef() const
Line
Count
Source
208
22.9M
  void AddRef() const {
209
22.9M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
22.9M
    subtle::RefCountedThreadSafeBase::AddRef();
211
22.9M
  }
yb::RefCountedThreadSafe<yb::ExternalDaemon, yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon> >::AddRef() const
Line
Count
Source
208
116k
  void AddRef() const {
209
116k
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
116k
    subtle::RefCountedThreadSafeBase::AddRef();
211
116k
  }
yb::RefCountedThreadSafe<yb::RefCountedMemory, yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory> >::AddRef() const
Line
Count
Source
208
363
  void AddRef() const {
209
363
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
363
    subtle::RefCountedThreadSafeBase::AddRef();
211
363
  }
yb::RefCountedThreadSafe<yb::FailureDetector, yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector> >::AddRef() const
Line
Count
Source
208
11
  void AddRef() const {
209
11
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
11
    subtle::RefCountedThreadSafeBase::AddRef();
211
11
  }
yb::RefCountedThreadSafe<yb::log::ReadableLogSegment, yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment> >::AddRef() const
Line
Count
Source
208
11.3M
  void AddRef() const {
209
11.3M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
11.3M
    subtle::RefCountedThreadSafeBase::AddRef();
211
11.3M
  }
yb::RefCountedThreadSafe<yb::log::LogIndex::IndexChunk, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk> >::AddRef() const
Line
Count
Source
208
66.0M
  void AddRef() const {
209
66.0M
    INVOKE_REF_COUNTED_DEBUG_HOOK(1);
210
66.0M
    subtle::RefCountedThreadSafeBase::AddRef();
211
66.0M
  }
212
213
2.89G
  void Release() const {
214
2.89G
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
2.89G
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
396M
      Traits::Destruct(static_cast<const T*>(this));
217
396M
    }
218
2.89G
  }
yb::RefCountedThreadSafe<yb::MetricEntity, yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity> >::Release() const
Line
Count
Source
213
31.3M
  void Release() const {
214
31.3M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
31.3M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
14.0k
      Traits::Destruct(static_cast<const T*>(this));
217
14.0k
    }
218
31.3M
  }
yb::RefCountedThreadSafe<yb::log::LogIndex, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex> >::Release() const
Line
Count
Source
213
152k
  void Release() const {
214
152k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
152k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
76.4k
      Traits::Destruct(static_cast<const T*>(this));
217
76.4k
    }
218
152k
  }
yb::RefCountedThreadSafe<yb::log::ReadableLogSegment, yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment> >::Release() const
Line
Count
Source
213
11.2M
  void Release() const {
214
11.2M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
11.2M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
177k
      Traits::Destruct(static_cast<const T*>(this));
217
177k
    }
218
11.2M
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::Release() const
yb::RefCountedThreadSafe<yb::log::Log, yb::DefaultRefCountedThreadSafeTraits<yb::log::Log> >::Release() const
Line
Count
Source
213
752k
  void Release() const {
214
752k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
752k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
75.0k
      Traits::Destruct(static_cast<const T*>(this));
217
75.0k
    }
218
752k
  }
yb::RefCountedThreadSafe<yb::Metric, yb::DefaultRefCountedThreadSafeTraits<yb::Metric> >::Release() const
Line
Count
Source
213
709M
  void Release() const {
214
709M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
709M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
2.93M
      Traits::Destruct(static_cast<const T*>(this));
217
2.93M
    }
218
709M
  }
yb::RefCountedThreadSafe<yb::internal::BindStateBase, yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase> >::Release() const
Line
Count
Source
213
314M
  void Release() const {
214
314M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
314M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
86.0M
      Traits::Destruct(static_cast<const T*>(this));
217
86.0M
    }
218
314M
  }
yb::RefCountedThreadSafe<yb::ClockBase, yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase> >::Release() const
Line
Count
Source
213
36.7M
  void Release() const {
214
36.7M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
36.7M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
6.95k
      Traits::Destruct(static_cast<const T*>(this));
217
6.95k
    }
218
36.7M
  }
yb::RefCountedThreadSafe<yb::master::TableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo> >::Release() const
Line
Count
Source
213
737M
  void Release() const {
214
737M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
737M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
3.71k
      Traits::Destruct(static_cast<const T*>(this));
217
3.71k
    }
218
737M
  }
yb::RefCountedThreadSafe<yb::master::TabletInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo> >::Release() const
Line
Count
Source
213
148M
  void Release() const {
214
148M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
148M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
2.17k
      Traits::Destruct(static_cast<const T*>(this));
217
2.17k
    }
218
148M
  }
yb::RefCountedThreadSafe<yb::redisserver::BatchContext, yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext> >::Release() const
Line
Count
Source
213
6.66M
  void Release() const {
214
6.66M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
6.66M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
209k
      Traits::Destruct(static_cast<const T*>(this));
217
209k
    }
218
6.66M
  }
yb::RefCountedThreadSafe<yb::client::internal::RemoteTablet, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet> >::Release() const
Line
Count
Source
213
165M
  void Release() const {
214
165M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
165M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
71
      Traits::Destruct(static_cast<const T*>(this));
217
71
    }
218
165M
  }
yb::RefCountedThreadSafe<yb::rpc::RpcService, yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService> >::Release() const
Line
Count
Source
213
655k
  void Release() const {
214
655k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
655k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
2.23k
      Traits::Destruct(static_cast<const T*>(this));
217
2.23k
    }
218
655k
  }
yb::RefCountedThreadSafe<yb::Thread, yb::DefaultRefCountedThreadSafeTraits<yb::Thread> >::Release() const
Line
Count
Source
213
4.04M
  void Release() const {
214
4.04M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
4.04M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
911k
      Traits::Destruct(static_cast<const T*>(this));
217
911k
    }
218
4.04M
  }
yb::RefCountedThreadSafe<yb::tablet::RaftGroupMetadata, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata> >::Release() const
Line
Count
Source
213
1.21M
  void Release() const {
214
1.21M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
1.21M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
83.1k
      Traits::Destruct(static_cast<const T*>(this));
217
83.1k
    }
218
1.21M
  }
yb::RefCountedThreadSafe<yb::tserver::RemoteBootstrapSession, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession> >::Release() const
Line
Count
Source
213
17.3k
  void Release() const {
214
17.3k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
17.3k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
1.95k
      Traits::Destruct(static_cast<const T*>(this));
217
1.95k
    }
218
17.3k
  }
yb::RefCountedThreadSafe<yb::Trace, yb::DefaultRefCountedThreadSafeTraits<yb::Trace> >::Release() const
Line
Count
Source
213
361M
  void Release() const {
214
361M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
361M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
258M
      Traits::Destruct(static_cast<const T*>(this));
217
258M
    }
218
361M
  }
yb::RefCountedThreadSafe<yb::tserver::TransitionInProgressDeleter, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter> >::Release() const
Line
Count
Source
213
358k
  void Release() const {
214
358k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
358k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
217k
      Traits::Destruct(static_cast<const T*>(this));
217
217k
    }
218
358k
  }
yb::RefCountedThreadSafe<yb::log::LogAnchorRegistry, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry> >::Release() const
Line
Count
Source
213
602k
  void Release() const {
214
602k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
602k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
74.7k
      Traits::Destruct(static_cast<const T*>(this));
217
74.7k
    }
218
602k
  }
yb::RefCountedThreadSafe<yb::tablet::OperationDriver, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver> >::Release() const
Line
Count
Source
213
141M
  void Release() const {
214
141M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
141M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
31.4M
      Traits::Destruct(static_cast<const T*>(this));
217
31.4M
    }
218
141M
  }
yb::RefCountedThreadSafe<yb::consensus::ConsensusRound, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound> >::Release() const
Line
Count
Source
213
80.8M
  void Release() const {
214
80.8M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
80.8M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
14.5M
      Traits::Destruct(static_cast<const T*>(this));
217
14.5M
    }
218
80.8M
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::Release() const
yb::RefCountedThreadSafe<yb::consensus::LeaderElection, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection> >::Release() const
Line
Count
Source
213
5.84M
  void Release() const {
214
5.84M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
5.84M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
737k
      Traits::Destruct(static_cast<const T*>(this));
217
737k
    }
218
5.84M
  }
yb::RefCountedThreadSafe<yb::master::NamespaceInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo> >::Release() const
Line
Count
Source
213
1.32M
  void Release() const {
214
1.32M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
1.32M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
1.88k
      Traits::Destruct(static_cast<const T*>(this));
217
1.88k
    }
218
1.32M
  }
yb::RefCountedThreadSafe<yb::master::SysConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo> >::Release() const
Line
Count
Source
213
2.54k
  void Release() const {
214
2.54k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
2.54k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
2.54k
      Traits::Destruct(static_cast<const T*>(this));
217
2.54k
    }
218
2.54k
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::Release() const
yb::RefCountedThreadSafe<yb::master::CDCStreamInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo> >::Release() const
Line
Count
Source
213
11.3k
  void Release() const {
214
11.3k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
11.3k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
69
      Traits::Destruct(static_cast<const T*>(this));
217
69
    }
218
11.3k
  }
yb::RefCountedThreadSafe<yb::master::UniverseReplicationInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo> >::Release() const
Line
Count
Source
213
2
  void Release() const {
214
2
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
2
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
2
      Traits::Destruct(static_cast<const T*>(this));
217
2
    }
218
2
  }
yb::RefCountedThreadSafe<yb::master::RoleInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo> >::Release() const
Line
Count
Source
213
45.3k
  void Release() const {
214
45.3k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
45.3k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
829
      Traits::Destruct(static_cast<const T*>(this));
217
829
    }
218
45.3k
  }
yb::RefCountedThreadSafe<yb::master::TasksTracker, yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker> >::Release() const
Line
Count
Source
213
503k
  void Release() const {
214
503k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
503k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
183
      Traits::Destruct(static_cast<const T*>(this));
217
183
    }
218
503k
  }
yb::RefCountedThreadSafe<yb::master::UDTypeInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo> >::Release() const
Line
Count
Source
213
732
  void Release() const {
214
732
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
732
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
48
      Traits::Destruct(static_cast<const T*>(this));
217
48
    }
218
732
  }
yb::RefCountedThreadSafe<yb::master::TablegroupInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo> >::Release() const
Line
Count
Source
213
327
  void Release() const {
214
327
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
327
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
53
      Traits::Destruct(static_cast<const T*>(this));
217
53
    }
218
327
  }
yb::RefCountedThreadSafe<yb::master::RedisConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo> >::Release() const
Line
Count
Source
213
544
  void Release() const {
214
544
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
544
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
7
      Traits::Destruct(static_cast<const T*>(this));
217
7
    }
218
544
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::DeletedTableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo> >::Release() const
yb::RefCountedThreadSafe<yb::client::internal::MetaCache, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache> >::Release() const
Line
Count
Source
213
139k
  void Release() const {
214
139k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
139k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
691
      Traits::Destruct(static_cast<const T*>(this));
217
691
    }
218
139k
  }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::Release() const
yb::RefCountedThreadSafe<yb::tools::ChecksumResultReporter, yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter> >::Release() const
Line
Count
Source
213
9.41k
  void Release() const {
214
9.41k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
9.41k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
658
      Traits::Destruct(static_cast<const T*>(this));
217
658
    }
218
9.41k
  }
yb::RefCountedThreadSafe<yb::pggate::PgTableDesc, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc> >::Release() const
Line
Count
Source
213
46.6M
  void Release() const {
214
46.6M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
46.6M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
191k
      Traits::Destruct(static_cast<const T*>(this));
217
191k
    }
218
46.6M
  }
yb::RefCountedThreadSafe<yb::pggate::PgSession, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession> >::Release() const
Line
Count
Source
213
22.9M
  void Release() const {
214
22.9M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
22.9M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
6.06k
      Traits::Destruct(static_cast<const T*>(this));
217
6.06k
    }
218
22.9M
  }
yb::RefCountedThreadSafe<yb::pggate::PgTxnManager, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager> >::Release() const
Line
Count
Source
213
12.1k
  void Release() const {
214
12.1k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
12.1k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
6.06k
      Traits::Destruct(static_cast<const T*>(this));
217
6.06k
    }
218
12.1k
  }
yb::RefCountedThreadSafe<yb::ExternalDaemon, yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon> >::Release() const
Line
Count
Source
213
116k
  void Release() const {
214
116k
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
116k
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
1.50k
      Traits::Destruct(static_cast<const T*>(this));
217
1.50k
    }
218
116k
  }
yb::RefCountedThreadSafe<yb::RefCountedMemory, yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory> >::Release() const
Line
Count
Source
213
362
  void Release() const {
214
362
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
362
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
362
      Traits::Destruct(static_cast<const T*>(this));
217
362
    }
218
362
  }
yb::RefCountedThreadSafe<yb::FailureDetector, yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector> >::Release() const
Line
Count
Source
213
11
  void Release() const {
214
11
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
11
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
1
      Traits::Destruct(static_cast<const T*>(this));
217
1
    }
218
11
  }
yb::RefCountedThreadSafe<yb::log::LogIndex::IndexChunk, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk> >::Release() const
Line
Count
Source
213
66.0M
  void Release() const {
214
66.0M
    INVOKE_REF_COUNTED_DEBUG_HOOK(-1);
215
66.0M
    if (subtle::RefCountedThreadSafeBase::Release()) {
216
76.3k
      Traits::Destruct(static_cast<const T*>(this));
217
76.3k
    }
218
66.0M
  }
219
220
 protected:
221
396M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::ReadableLogSegment, yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment> >::~RefCountedThreadSafe()
Line
Count
Source
221
177k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::ClockBase, yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase> >::~RefCountedThreadSafe()
Line
Count
Source
221
6.95k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::internal::BindStateBase, yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase> >::~RefCountedThreadSafe()
Line
Count
Source
221
85.9M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::redisserver::BatchContext, yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext> >::~RefCountedThreadSafe()
Line
Count
Source
221
209k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tserver::RemoteBootstrapSession, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession> >::~RefCountedThreadSafe()
Line
Count
Source
221
1.95k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tserver::TransitionInProgressDeleter, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter> >::~RefCountedThreadSafe()
Line
Count
Source
221
217k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::RefCountedMemory, yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory> >::~RefCountedThreadSafe()
Line
Count
Source
221
362
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::consensus::ConsensusRound, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound> >::~RefCountedThreadSafe()
Line
Count
Source
221
14.5M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tablet::OperationDriver, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver> >::~RefCountedThreadSafe()
Line
Count
Source
221
31.4M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tablet::RaftGroupMetadata, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata> >::~RefCountedThreadSafe()
Line
Count
Source
221
83.0k
  ~RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::~RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::rpc::RpcService, yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService> >::~RefCountedThreadSafe()
Line
Count
Source
221
2.23k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::consensus::LeaderElection, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection> >::~RefCountedThreadSafe()
Line
Count
Source
221
737k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::SysConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
2.54k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::RedisConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
7
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TasksTracker, yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker> >::~RefCountedThreadSafe()
Line
Count
Source
221
183
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TablegroupInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
53
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TabletInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
2.17k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::TableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
3.71k
  ~RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::DeletedTableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo> >::~RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::master::NamespaceInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
1.88k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::UDTypeInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
48
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::RoleInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
829
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::UniverseReplicationInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
2
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::master::CDCStreamInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo> >::~RefCountedThreadSafe()
Line
Count
Source
221
69
  ~RefCountedThreadSafe() {}
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::~RefCountedThreadSafe()
yb::RefCountedThreadSafe<yb::client::internal::RemoteTablet, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet> >::~RefCountedThreadSafe()
Line
Count
Source
221
71
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::client::internal::MetaCache, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache> >::~RefCountedThreadSafe()
Line
Count
Source
221
691
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::tools::ChecksumResultReporter, yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter> >::~RefCountedThreadSafe()
Line
Count
Source
221
658
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgTableDesc, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc> >::~RefCountedThreadSafe()
Line
Count
Source
221
190k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgSession, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession> >::~RefCountedThreadSafe()
Line
Count
Source
221
6.07k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::pggate::PgTxnManager, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager> >::~RefCountedThreadSafe()
Line
Count
Source
221
6.06k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::ExternalDaemon, yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon> >::~RefCountedThreadSafe()
Line
Count
Source
221
1.50k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::FailureDetector, yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector> >::~RefCountedThreadSafe()
Line
Count
Source
221
1
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::MetricEntity, yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity> >::~RefCountedThreadSafe()
Line
Count
Source
221
14.0k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Metric, yb::DefaultRefCountedThreadSafeTraits<yb::Metric> >::~RefCountedThreadSafe()
Line
Count
Source
221
2.93M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Thread, yb::DefaultRefCountedThreadSafeTraits<yb::Thread> >::~RefCountedThreadSafe()
Line
Count
Source
221
910k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::Trace, yb::DefaultRefCountedThreadSafeTraits<yb::Trace> >::~RefCountedThreadSafe()
Line
Count
Source
221
258M
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::Log, yb::DefaultRefCountedThreadSafeTraits<yb::log::Log> >::~RefCountedThreadSafe()
Line
Count
Source
221
75.0k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogAnchorRegistry, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry> >::~RefCountedThreadSafe()
Line
Count
Source
221
74.7k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogIndex::IndexChunk, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk> >::~RefCountedThreadSafe()
Line
Count
Source
221
76.2k
  ~RefCountedThreadSafe() {}
yb::RefCountedThreadSafe<yb::log::LogIndex, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex> >::~RefCountedThreadSafe()
Line
Count
Source
221
76.3k
  ~RefCountedThreadSafe() {}
222
223
 private:
224
  friend struct DefaultRefCountedThreadSafeTraits<T>;
225
396M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::MetricEntity, yb::DefaultRefCountedThreadSafeTraits<yb::MetricEntity> >::DeleteInternal(yb::MetricEntity const*)
Line
Count
Source
225
14.0k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::log::LogIndex, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex> >::DeleteInternal(yb::log::LogIndex const*)
Line
Count
Source
225
76.1k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::log::ReadableLogSegment, yb::DefaultRefCountedThreadSafeTraits<yb::log::ReadableLogSegment> >::DeleteInternal(yb::log::ReadableLogSegment const*)
Line
Count
Source
225
176k
  static void DeleteInternal(const T* x) { delete x; }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::debug::ConvertableToTraceFormat, yb::DefaultRefCountedThreadSafeTraits<yb::debug::ConvertableToTraceFormat> >::DeleteInternal(yb::debug::ConvertableToTraceFormat const*)
yb::RefCountedThreadSafe<yb::log::Log, yb::DefaultRefCountedThreadSafeTraits<yb::log::Log> >::DeleteInternal(yb::log::Log const*)
Line
Count
Source
225
75.0k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::Metric, yb::DefaultRefCountedThreadSafeTraits<yb::Metric> >::DeleteInternal(yb::Metric const*)
Line
Count
Source
225
2.93M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::internal::BindStateBase, yb::DefaultRefCountedThreadSafeTraits<yb::internal::BindStateBase> >::DeleteInternal(yb::internal::BindStateBase const*)
Line
Count
Source
225
85.9M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::ClockBase, yb::DefaultRefCountedThreadSafeTraits<yb::ClockBase> >::DeleteInternal(yb::ClockBase const*)
Line
Count
Source
225
6.95k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::TableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TableInfo> >::DeleteInternal(yb::master::TableInfo const*)
Line
Count
Source
225
3.71k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::TabletInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TabletInfo> >::DeleteInternal(yb::master::TabletInfo const*)
Line
Count
Source
225
2.17k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::redisserver::BatchContext, yb::DefaultRefCountedThreadSafeTraits<yb::redisserver::BatchContext> >::DeleteInternal(yb::redisserver::BatchContext const*)
Line
Count
Source
225
209k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::client::internal::RemoteTablet, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::RemoteTablet> >::DeleteInternal(yb::client::internal::RemoteTablet const*)
Line
Count
Source
225
71
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::rpc::RpcService, yb::DefaultRefCountedThreadSafeTraits<yb::rpc::RpcService> >::DeleteInternal(yb::rpc::RpcService const*)
Line
Count
Source
225
2.23k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::Thread, yb::DefaultRefCountedThreadSafeTraits<yb::Thread> >::DeleteInternal(yb::Thread const*)
Line
Count
Source
225
910k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::tablet::RaftGroupMetadata, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::RaftGroupMetadata> >::DeleteInternal(yb::tablet::RaftGroupMetadata const*)
Line
Count
Source
225
83.1k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::tserver::RemoteBootstrapSession, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::RemoteBootstrapSession> >::DeleteInternal(yb::tserver::RemoteBootstrapSession const*)
Line
Count
Source
225
1.95k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::Trace, yb::DefaultRefCountedThreadSafeTraits<yb::Trace> >::DeleteInternal(yb::Trace const*)
Line
Count
Source
225
258M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::tserver::TransitionInProgressDeleter, yb::DefaultRefCountedThreadSafeTraits<yb::tserver::TransitionInProgressDeleter> >::DeleteInternal(yb::tserver::TransitionInProgressDeleter const*)
Line
Count
Source
225
217k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::log::LogAnchorRegistry, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogAnchorRegistry> >::DeleteInternal(yb::log::LogAnchorRegistry const*)
Line
Count
Source
225
74.7k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::tablet::OperationDriver, yb::DefaultRefCountedThreadSafeTraits<yb::tablet::OperationDriver> >::DeleteInternal(yb::tablet::OperationDriver const*)
Line
Count
Source
225
31.4M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::consensus::ConsensusRound, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::ConsensusRound> >::DeleteInternal(yb::consensus::ConsensusRound const*)
Line
Count
Source
225
14.5M
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::consensus::LeaderElection, yb::DefaultRefCountedThreadSafeTraits<yb::consensus::LeaderElection> >::DeleteInternal(yb::consensus::LeaderElection const*)
Line
Count
Source
225
737k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::NamespaceInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::NamespaceInfo> >::DeleteInternal(yb::master::NamespaceInfo const*)
Line
Count
Source
225
1.88k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::SysConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SysConfigInfo> >::DeleteInternal(yb::master::SysConfigInfo const*)
Line
Count
Source
225
2.54k
  static void DeleteInternal(const T* x) { delete x; }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::SnapshotInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::SnapshotInfo> >::DeleteInternal(yb::master::SnapshotInfo const*)
yb::RefCountedThreadSafe<yb::master::CDCStreamInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::CDCStreamInfo> >::DeleteInternal(yb::master::CDCStreamInfo const*)
Line
Count
Source
225
69
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::UniverseReplicationInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UniverseReplicationInfo> >::DeleteInternal(yb::master::UniverseReplicationInfo const*)
Line
Count
Source
225
2
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::RoleInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RoleInfo> >::DeleteInternal(yb::master::RoleInfo const*)
Line
Count
Source
225
829
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::TasksTracker, yb::DefaultRefCountedThreadSafeTraits<yb::master::TasksTracker> >::DeleteInternal(yb::master::TasksTracker const*)
Line
Count
Source
225
183
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::UDTypeInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::UDTypeInfo> >::DeleteInternal(yb::master::UDTypeInfo const*)
Line
Count
Source
225
48
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::TablegroupInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::TablegroupInfo> >::DeleteInternal(yb::master::TablegroupInfo const*)
Line
Count
Source
225
53
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::master::RedisConfigInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::RedisConfigInfo> >::DeleteInternal(yb::master::RedisConfigInfo const*)
Line
Count
Source
225
7
  static void DeleteInternal(const T* x) { delete x; }
Unexecuted instantiation: yb::RefCountedThreadSafe<yb::master::DeletedTableInfo, yb::DefaultRefCountedThreadSafeTraits<yb::master::DeletedTableInfo> >::DeleteInternal(yb::master::DeletedTableInfo const*)
yb::RefCountedThreadSafe<yb::client::internal::MetaCache, yb::DefaultRefCountedThreadSafeTraits<yb::client::internal::MetaCache> >::DeleteInternal(yb::client::internal::MetaCache const*)
Line
Count
Source
225
691
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::tools::ChecksumResultReporter, yb::DefaultRefCountedThreadSafeTraits<yb::tools::ChecksumResultReporter> >::DeleteInternal(yb::tools::ChecksumResultReporter const*)
Line
Count
Source
225
658
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::pggate::PgTableDesc, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTableDesc> >::DeleteInternal(yb::pggate::PgTableDesc const*)
Line
Count
Source
225
190k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::pggate::PgSession, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgSession> >::DeleteInternal(yb::pggate::PgSession const*)
Line
Count
Source
225
6.06k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::pggate::PgTxnManager, yb::DefaultRefCountedThreadSafeTraits<yb::pggate::PgTxnManager> >::DeleteInternal(yb::pggate::PgTxnManager const*)
Line
Count
Source
225
6.06k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::ExternalDaemon, yb::DefaultRefCountedThreadSafeTraits<yb::ExternalDaemon> >::DeleteInternal(yb::ExternalDaemon const*)
Line
Count
Source
225
1.50k
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::RefCountedMemory, yb::DefaultRefCountedThreadSafeTraits<yb::RefCountedMemory> >::DeleteInternal(yb::RefCountedMemory const*)
Line
Count
Source
225
362
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::FailureDetector, yb::DefaultRefCountedThreadSafeTraits<yb::FailureDetector> >::DeleteInternal(yb::FailureDetector const*)
Line
Count
Source
225
1
  static void DeleteInternal(const T* x) { delete x; }
yb::RefCountedThreadSafe<yb::log::LogIndex::IndexChunk, yb::DefaultRefCountedThreadSafeTraits<yb::log::LogIndex::IndexChunk> >::DeleteInternal(yb::log::LogIndex::IndexChunk const*)
Line
Count
Source
225
76.2k
  static void DeleteInternal(const T* x) { delete x; }
226
227
  DISALLOW_COPY_AND_ASSIGN(RefCountedThreadSafe);
228
};
229
230
template <class T, typename Traits>
231
void intrusive_ptr_add_ref(RefCountedThreadSafe<T, Traits>* px) {
232
  px->AddRef();
233
}
234
235
template <class T, typename Traits>
236
void intrusive_ptr_release(RefCountedThreadSafe<T, Traits>* px) {
237
  px->Release();
238
}
239
240
//
241
// A thread-safe wrapper for some piece of data so we can place other
242
// things in scoped_refptrs<>.
243
//
244
template<typename T>
245
class RefCountedData
246
    : public yb::RefCountedThreadSafe< yb::RefCountedData<T> > {
247
 public:
248
  RefCountedData() : data() {}
249
  explicit RefCountedData(const T& in_value) : data(in_value) {}
250
251
  T data;
252
253
 private:
254
  friend class yb::RefCountedThreadSafe<yb::RefCountedData<T> >;
255
  ~RefCountedData() {}
256
};
257
258
}  // namespace yb
259
260
//
261
// A smart pointer class for reference counted objects.  Use this class instead
262
// of calling AddRef and Release manually on a reference counted object to
263
// avoid common memory leaks caused by forgetting to Release an object
264
// reference.  Sample usage:
265
//
266
//   class MyFoo : public RefCounted<MyFoo> {
267
//    ...
268
//   };
269
//
270
//   void some_function() {
271
//     scoped_refptr<MyFoo> foo = new MyFoo();
272
//     foo->Method(param);
273
//     // |foo| is released when this function returns
274
//   }
275
//
276
//   void some_other_function() {
277
//     scoped_refptr<MyFoo> foo = new MyFoo();
278
//     ...
279
//     foo = NULL;  // explicitly releases |foo|
280
//     ...
281
//     if (foo)
282
//       foo->Method(param);
283
//   }
284
//
285
// The above examples show how scoped_refptr<T> acts like a pointer to T.
286
// Given two scoped_refptr<T> classes, it is also possible to exchange
287
// references between the two objects, like so:
288
//
289
//   {
290
//     scoped_refptr<MyFoo> a = new MyFoo();
291
//     scoped_refptr<MyFoo> b;
292
//
293
//     b.swap(a);
294
//     // now, |b| references the MyFoo object, and |a| references NULL.
295
//   }
296
//
297
// To make both |a| and |b| in the above example reference the same MyFoo
298
// object, simply use the assignment operator:
299
//
300
//   {
301
//     scoped_refptr<MyFoo> a = new MyFoo();
302
//     scoped_refptr<MyFoo> b;
303
//
304
//     b = a;
305
//     // now, |a| and |b| each own a reference to the same MyFoo object.
306
//   }
307
//
308
309
#ifndef NDEBUG
310
void ScopedRefPtrCheck(bool);
311
#else
312
inline void ScopedRefPtrCheck(bool) {}
313
#endif
314
315
316
template <class T>
317
class scoped_refptr {
318
 public:
319
  typedef T element_type;
320
321
697M
  scoped_refptr() : ptr_(NULL) {
322
697M
  }
scoped_refptr<yb::MetricEntity>::scoped_refptr()
Line
Count
Source
321
570k
  scoped_refptr() : ptr_(NULL) {
322
570k
  }
scoped_refptr<yb::log::LogIndex>::scoped_refptr()
Line
Count
Source
321
151k
  scoped_refptr() : ptr_(NULL) {
322
151k
  }
scoped_refptr<yb::log::Log>::scoped_refptr()
Line
Count
Source
321
450k
  scoped_refptr() : ptr_(NULL) {
322
450k
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::scoped_refptr()
Line
Count
Source
321
2.26M
  scoped_refptr() : ptr_(NULL) {
322
2.26M
  }
scoped_refptr<yb::redisserver::BatchContext>::scoped_refptr()
Line
Count
Source
321
208k
  scoped_refptr() : ptr_(NULL) {
322
208k
  }
scoped_refptr<yb::client::internal::RemoteTablet>::scoped_refptr()
Line
Count
Source
321
73.6M
  scoped_refptr() : ptr_(NULL) {
322
73.6M
  }
scoped_refptr<yb::Counter>::scoped_refptr()
Line
Count
Source
321
111M
  scoped_refptr() : ptr_(NULL) {
322
111M
  }
scoped_refptr<yb::Thread>::scoped_refptr()
Line
Count
Source
321
1.90M
  scoped_refptr() : ptr_(NULL) {
322
1.90M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::scoped_refptr()
Line
Count
Source
321
13.2k
  scoped_refptr() : ptr_(NULL) {
322
13.2k
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::scoped_refptr()
Line
Count
Source
321
13.3k
  scoped_refptr() : ptr_(NULL) {
322
13.3k
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::scoped_refptr()
Line
Count
Source
321
228k
  scoped_refptr() : ptr_(NULL) {
322
228k
  }
scoped_refptr<yb::Histogram>::scoped_refptr()
Line
Count
Source
321
101M
  scoped_refptr() : ptr_(NULL) {
322
101M
  }
scoped_refptr<yb::consensus::ConsensusRound>::scoped_refptr()
Line
Count
Source
321
16.2M
  scoped_refptr() : ptr_(NULL) {
322
16.2M
  }
scoped_refptr<yb::debug::ConvertableToTraceFormat>::scoped_refptr()
Line
Count
Source
321
638k
  scoped_refptr() : ptr_(NULL) {
322
638k
  }
scoped_refptr<yb::AtomicGauge<long long> >::scoped_refptr()
Line
Count
Source
321
3.31M
  scoped_refptr() : ptr_(NULL) {
322
3.31M
  }
scoped_refptr<yb::server::Clock>::scoped_refptr()
Line
Count
Source
321
26.5k
  scoped_refptr() : ptr_(NULL) {
322
26.5k
  }
scoped_refptr<yb::consensus::LeaderElection>::scoped_refptr()
Line
Count
Source
321
1.22M
  scoped_refptr() : ptr_(NULL) {
322
1.22M
  }
scoped_refptr<yb::AtomicMillisLag>::scoped_refptr()
Line
Count
Source
321
26.4k
  scoped_refptr() : ptr_(NULL) {
322
26.4k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::scoped_refptr()
Line
Count
Source
321
20.3k
  scoped_refptr() : ptr_(NULL) {
322
20.3k
  }
scoped_refptr<yb::master::TableInfo>::scoped_refptr()
Line
Count
Source
321
710k
  scoped_refptr() : ptr_(NULL) {
322
710k
  }
scoped_refptr<yb::master::TabletInfo>::scoped_refptr()
Line
Count
Source
321
2.23M
  scoped_refptr() : ptr_(NULL) {
322
2.23M
  }
scoped_refptr<yb::master::NamespaceInfo>::scoped_refptr()
Line
Count
Source
321
35.0k
  scoped_refptr() : ptr_(NULL) {
322
35.0k
  }
scoped_refptr<yb::master::TablegroupInfo>::scoped_refptr()
Line
Count
Source
321
57
  scoped_refptr() : ptr_(NULL) {
322
57
  }
scoped_refptr<yb::master::RedisConfigInfo>::scoped_refptr()
Line
Count
Source
321
182
  scoped_refptr() : ptr_(NULL) {
322
182
  }
scoped_refptr<yb::master::UDTypeInfo>::scoped_refptr()
Line
Count
Source
321
249
  scoped_refptr() : ptr_(NULL) {
322
249
  }
scoped_refptr<yb::master::RoleInfo>::scoped_refptr()
Line
Count
Source
321
6.55k
  scoped_refptr() : ptr_(NULL) {
322
6.55k
  }
scoped_refptr<yb::master::SnapshotInfo>::scoped_refptr()
Line
Count
Source
321
35
  scoped_refptr() : ptr_(NULL) {
322
35
  }
scoped_refptr<yb::master::CDCStreamInfo>::scoped_refptr()
Line
Count
Source
321
5.83k
  scoped_refptr() : ptr_(NULL) {
322
5.83k
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::scoped_refptr()
Line
Count
Source
321
4
  scoped_refptr() : ptr_(NULL) {
322
4
  }
scoped_refptr<yb::client::internal::MetaCache>::scoped_refptr()
Line
Count
Source
321
46.8k
  scoped_refptr() : ptr_(NULL) {
322
46.8k
  }
scoped_refptr<yb::pggate::PgTableDesc>::scoped_refptr()
Line
Count
Source
321
20.9M
  scoped_refptr() : ptr_(NULL) {
322
20.9M
  }
scoped_refptr<yb::pggate::PgSession>::scoped_refptr()
Line
Count
Source
321
6.09k
  scoped_refptr() : ptr_(NULL) {
322
6.09k
  }
scoped_refptr<yb::rpc::ServicePool>::scoped_refptr()
Line
Count
Source
321
82
  scoped_refptr() : ptr_(NULL) {
322
82
  }
scoped_refptr<yb::RefCountedString>::scoped_refptr()
Line
Count
Source
321
319k
  scoped_refptr() : ptr_(NULL) {
322
319k
  }
scoped_refptr<yb::Trace>::scoped_refptr()
Line
Count
Source
321
293M
  scoped_refptr() : ptr_(NULL) {
322
293M
  }
Unexecuted instantiation: scoped_refptr<yb::log::ReadableLogSegment>::scoped_refptr()
scoped_refptr<yb::log::LogIndex::IndexChunk>::scoped_refptr()
Line
Count
Source
321
65.8M
  scoped_refptr() : ptr_(NULL) {
322
65.8M
  }
323
324
848M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
848M
    if (ptr_)
326
776M
      ptr_->AddRef();
327
848M
  }
scoped_refptr<yb::log::LogIndex>::scoped_refptr(yb::log::LogIndex*)
Line
Count
Source
324
37
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
37
    if (ptr_)
326
34
      ptr_->AddRef();
327
37
  }
scoped_refptr<yb::MetricEntity>::scoped_refptr(yb::MetricEntity*)
Line
Count
Source
324
3.61M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
3.61M
    if (ptr_)
326
312k
      ptr_->AddRef();
327
3.61M
  }
scoped_refptr<yb::FunctionGauge<unsigned long long> >::scoped_refptr(yb::FunctionGauge<unsigned long long>*)
Line
Count
Source
324
446k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
446k
    if (ptr_)
326
446k
      ptr_->AddRef();
327
446k
  }
scoped_refptr<yb::Metric>::scoped_refptr(yb::Metric*)
Line
Count
Source
324
36.0M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
36.0M
    if (ptr_)
326
20.0M
      ptr_->AddRef();
327
36.0M
  }
scoped_refptr<yb::FunctionGauge<long long> >::scoped_refptr(yb::FunctionGauge<long long>*)
Line
Count
Source
324
51.5k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
51.5k
    if (ptr_)
326
51.5k
      ptr_->AddRef();
327
51.5k
  }
scoped_refptr<yb::server::Clock>::scoped_refptr(yb::server::Clock*)
Line
Count
Source
324
15.1M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
15.1M
    if (ptr_)
326
15.1M
      ptr_->AddRef();
327
15.1M
  }
scoped_refptr<yb::Counter>::scoped_refptr(yb::Counter*)
Line
Count
Source
324
24.0M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
24.0M
    if (ptr_)
326
11.6M
      ptr_->AddRef();
327
24.0M
  }
scoped_refptr<yb::redisserver::BatchContext>::scoped_refptr(yb::redisserver::BatchContext*)
Line
Count
Source
324
209k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
209k
    if (ptr_)
326
209k
      ptr_->AddRef();
327
209k
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::scoped_refptr(yb::redisserver::(anonymous namespace)::BatchContextImpl*)
Line
Count
Source
324
418k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
418k
    if (ptr_)
326
418k
      ptr_->AddRef();
327
418k
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::scoped_refptr(yb::AtomicGauge<unsigned long long>*)
Line
Count
Source
324
15.6M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
15.6M
    if (ptr_)
326
15.6M
      ptr_->AddRef();
327
15.6M
  }
scoped_refptr<yb::ClockBase>::scoped_refptr(yb::ClockBase*)
Line
Count
Source
324
38.5k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
38.5k
    if (ptr_)
326
17.8k
      ptr_->AddRef();
327
38.5k
  }
scoped_refptr<yb::Trace>::scoped_refptr(yb::Trace*)
Line
Count
Source
324
270M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
270M
    if (ptr_)
326
268M
      ptr_->AddRef();
327
270M
  }
scoped_refptr<yb::Histogram>::scoped_refptr(yb::Histogram*)
Line
Count
Source
324
64.9M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
64.9M
    if (ptr_)
326
60.8M
      ptr_->AddRef();
327
64.9M
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::scoped_refptr(yb::tserver::TransitionInProgressDeleter*)
Line
Count
Source
324
1.95k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
1.95k
    if (ptr_)
326
0
      ptr_->AddRef();
327
1.95k
  }
scoped_refptr<yb::internal::BindStateBase>::scoped_refptr(yb::internal::BindStateBase*)
Line
Count
Source
324
113M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
113M
    if (ptr_)
326
86.5M
      ptr_->AddRef();
327
113M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::scoped_refptr(yb::tablet::RaftGroupMetadata*)
Line
Count
Source
324
159k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
159k
    if (ptr_)
326
159k
      ptr_->AddRef();
327
159k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::scoped_refptr(yb::AtomicGauge<unsigned int>*)
Line
Count
Source
324
170k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
170k
    if (ptr_)
326
170k
      ptr_->AddRef();
327
170k
  }
scoped_refptr<yb::log::LogAnchorRegistry>::scoped_refptr(yb::log::LogAnchorRegistry*)
Line
Count
Source
324
150k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
150k
    if (ptr_)
326
150k
      ptr_->AddRef();
327
150k
  }
scoped_refptr<yb::log::Log>::scoped_refptr(yb::log::Log*)
Line
Count
Source
324
301k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
301k
    if (ptr_)
326
301k
      ptr_->AddRef();
327
301k
  }
scoped_refptr<yb::tablet::OperationDriver>::scoped_refptr(yb::tablet::OperationDriver*)
Line
Count
Source
324
140M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
140M
    if (ptr_)
326
140M
      ptr_->AddRef();
327
140M
  }
scoped_refptr<yb::consensus::ConsensusRound>::scoped_refptr(yb::consensus::ConsensusRound*)
Line
Count
Source
324
28.8M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
28.8M
    if (ptr_)
326
28.8M
      ptr_->AddRef();
327
28.8M
  }
scoped_refptr<yb::rpc::RpcService>::scoped_refptr(yb::rpc::RpcService*)
Line
Count
Source
324
208k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
208k
    if (ptr_)
326
208k
      ptr_->AddRef();
327
208k
  }
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>::scoped_refptr(yb::rpc::(anonymous namespace)::PbTracer*)
scoped_refptr<yb::AtomicGauge<long long> >::scoped_refptr(yb::AtomicGauge<long long>*)
Line
Count
Source
324
3.91M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
3.91M
    if (ptr_)
326
3.91M
      ptr_->AddRef();
327
3.91M
  }
scoped_refptr<yb::consensus::LeaderElection>::scoped_refptr(yb::consensus::LeaderElection*)
Line
Count
Source
324
2.19M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
2.19M
    if (ptr_)
326
2.19M
      ptr_->AddRef();
327
2.19M
  }
scoped_refptr<yb::rpc::ServicePool>::scoped_refptr(yb::rpc::ServicePool*)
Line
Count
Source
324
209k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
209k
    if (ptr_)
326
209k
      ptr_->AddRef();
327
209k
  }
scoped_refptr<yb::master::TableInfo>::scoped_refptr(yb::master::TableInfo*)
Line
Count
Source
324
5.46M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
5.46M
    if (ptr_)
326
841k
      ptr_->AddRef();
327
5.46M
  }
scoped_refptr<yb::master::SysConfigInfo>::scoped_refptr(yb::master::SysConfigInfo*)
Line
Count
Source
324
24.2k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
24.2k
    if (ptr_)
326
4
      ptr_->AddRef();
327
24.2k
  }
scoped_refptr<yb::master::TasksTracker>::scoped_refptr(yb::master::TasksTracker*)
Line
Count
Source
324
16.2k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
16.2k
    if (ptr_)
326
16.1k
      ptr_->AddRef();
327
16.2k
  }
scoped_refptr<yb::master::TabletInfo>::scoped_refptr(yb::master::TabletInfo*)
Line
Count
Source
324
102M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
102M
    if (ptr_)
326
102M
      ptr_->AddRef();
327
102M
  }
scoped_refptr<yb::master::NamespaceInfo>::scoped_refptr(yb::master::NamespaceInfo*)
Line
Count
Source
324
20.3k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
20.3k
    if (ptr_)
326
6.41k
      ptr_->AddRef();
327
20.3k
  }
scoped_refptr<yb::master::UDTypeInfo>::scoped_refptr(yb::master::UDTypeInfo*)
Line
Count
Source
324
102
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
102
    if (ptr_)
326
1
      ptr_->AddRef();
327
102
  }
scoped_refptr<yb::master::RedisConfigInfo>::scoped_refptr(yb::master::RedisConfigInfo*)
Line
Count
Source
324
1.00k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
1.00k
    if (ptr_)
326
2
      ptr_->AddRef();
327
1.00k
  }
Unexecuted instantiation: scoped_refptr<yb::master::DeletedTableInfo>::scoped_refptr(yb::master::DeletedTableInfo*)
scoped_refptr<yb::Thread>::scoped_refptr(yb::Thread*)
Line
Count
Source
324
3.79M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
3.79M
    if (ptr_)
326
3.76M
      ptr_->AddRef();
327
3.79M
  }
scoped_refptr<yb::master::RoleInfo>::scoped_refptr(yb::master::RoleInfo*)
Line
Count
Source
324
6.67k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
6.67k
    if (ptr_)
326
3.75k
      ptr_->AddRef();
327
6.67k
  }
scoped_refptr<yb::master::CDCStreamInfo>::scoped_refptr(yb::master::CDCStreamInfo*)
Line
Count
Source
324
622
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
622
    if (ptr_)
326
311
      ptr_->AddRef();
327
622
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::scoped_refptr(yb::master::SnapshotInfo*)
scoped_refptr<yb::master::UniverseReplicationInfo>::scoped_refptr(yb::master::UniverseReplicationInfo*)
Line
Count
Source
324
3
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
3
    if (ptr_)
326
1
      ptr_->AddRef();
327
3
  }
scoped_refptr<yb::client::internal::RemoteTablet>::scoped_refptr(yb::client::internal::RemoteTablet*)
Line
Count
Source
324
14.6M
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
14.6M
    if (ptr_)
326
12.9M
      ptr_->AddRef();
327
14.6M
  }
scoped_refptr<yb::client::internal::MetaCache>::scoped_refptr(yb::client::internal::MetaCache*)
Line
Count
Source
324
69.4k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
69.4k
    if (ptr_)
326
69.4k
      ptr_->AddRef();
327
69.4k
  }
scoped_refptr<yb::tools::ChecksumResultReporter>::scoped_refptr(yb::tools::ChecksumResultReporter*)
Line
Count
Source
324
5.03k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
5.03k
    if (ptr_)
326
5.03k
      ptr_->AddRef();
327
5.03k
  }
scoped_refptr<yb::server::HybridClock>::scoped_refptr(yb::server::HybridClock*)
Line
Count
Source
324
6.09k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
6.09k
    if (ptr_)
326
6.09k
      ptr_->AddRef();
327
6.09k
  }
scoped_refptr<yb::pggate::PgTxnManager>::scoped_refptr(yb::pggate::PgTxnManager*)
Line
Count
Source
324
6.08k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
6.08k
    if (ptr_)
326
6.08k
      ptr_->AddRef();
327
6.08k
  }
scoped_refptr<yb::pggate::PgSession>::scoped_refptr(yb::pggate::PgSession*)
Line
Count
Source
324
6.08k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
6.08k
    if (ptr_)
326
6.08k
      ptr_->AddRef();
327
6.08k
  }
scoped_refptr<yb::pggate::PgTableDesc>::scoped_refptr(yb::pggate::PgTableDesc*)
Line
Count
Source
324
652k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
652k
    if (ptr_)
326
191k
      ptr_->AddRef();
327
652k
  }
scoped_refptr<yb::ExternalMaster>::scoped_refptr(yb::ExternalMaster*)
Line
Count
Source
324
652
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
652
    if (ptr_)
326
652
      ptr_->AddRef();
327
652
  }
scoped_refptr<yb::ExternalTabletServer>::scoped_refptr(yb::ExternalTabletServer*)
Line
Count
Source
324
1.29k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
1.29k
    if (ptr_)
326
1.29k
      ptr_->AddRef();
327
1.29k
  }
scoped_refptr<yb::RefCountedString>::scoped_refptr(yb::RefCountedString*)
Line
Count
Source
324
350
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
350
    if (ptr_)
326
350
      ptr_->AddRef();
327
350
  }
scoped_refptr<yb::MillisLag>::scoped_refptr(yb::MillisLag*)
Line
Count
Source
324
1
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
1
    if (ptr_)
326
1
      ptr_->AddRef();
327
1
  }
scoped_refptr<yb::AtomicMillisLag>::scoped_refptr(yb::AtomicMillisLag*)
Line
Count
Source
324
176k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
176k
    if (ptr_)
326
161
      ptr_->AddRef();
327
176k
  }
scoped_refptr<yb::log::ReadableLogSegment>::scoped_refptr(yb::log::ReadableLogSegment*)
Line
Count
Source
324
257k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
257k
    if (ptr_)
326
255k
      ptr_->AddRef();
327
257k
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::scoped_refptr(yb::log::LogIndex::IndexChunk*)
Line
Count
Source
324
150k
  scoped_refptr(T* p) : ptr_(p) { // NOLINT
325
150k
    if (ptr_)
326
150k
      ptr_->AddRef();
327
150k
  }
328
329
1.60G
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
1.60G
    if (ptr_)
331
1.59G
      ptr_->AddRef();
332
1.60G
  }
scoped_refptr<yb::internal::BindStateBase>::scoped_refptr(scoped_refptr<yb::internal::BindStateBase> const&)
Line
Count
Source
329
194M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
194M
    if (ptr_)
331
194M
      ptr_->AddRef();
332
194M
  }
scoped_refptr<yb::master::TabletInfo>::scoped_refptr(scoped_refptr<yb::master::TabletInfo> const&)
Line
Count
Source
329
46.1M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
46.1M
    if (ptr_)
331
46.1M
      ptr_->AddRef();
332
46.1M
  }
scoped_refptr<yb::redisserver::BatchContext>::scoped_refptr(scoped_refptr<yb::redisserver::BatchContext> const&)
Line
Count
Source
329
6.03M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
6.03M
    if (ptr_)
331
6.03M
      ptr_->AddRef();
332
6.03M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::scoped_refptr(scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl> const&)
Line
Count
Source
329
2.00k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
2.00k
    if (ptr_)
331
2.00k
      ptr_->AddRef();
332
2.00k
  }
scoped_refptr<yb::rpc::RpcService>::scoped_refptr(scoped_refptr<yb::rpc::RpcService> const&)
Line
Count
Source
329
2.54M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
2.54M
    if (ptr_)
331
2.54M
      ptr_->AddRef();
332
2.54M
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::scoped_refptr(scoped_refptr<yb::AtomicGauge<unsigned long long> > const&)
Line
Count
Source
329
25.4M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
25.4M
    if (ptr_)
331
25.4M
      ptr_->AddRef();
332
25.4M
  }
scoped_refptr<yb::MetricEntity>::scoped_refptr(scoped_refptr<yb::MetricEntity> const&)
Line
Count
Source
329
32.5M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
32.5M
    if (ptr_)
331
32.2M
      ptr_->AddRef();
332
32.5M
  }
scoped_refptr<yb::Histogram>::scoped_refptr(scoped_refptr<yb::Histogram> const&)
Line
Count
Source
329
189M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
189M
    if (ptr_)
331
182M
      ptr_->AddRef();
332
189M
  }
scoped_refptr<yb::Counter>::scoped_refptr(scoped_refptr<yb::Counter> const&)
Line
Count
Source
329
27.2M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
27.2M
    if (ptr_)
331
24.4M
      ptr_->AddRef();
332
27.2M
  }
scoped_refptr<yb::ClockBase>::scoped_refptr(scoped_refptr<yb::ClockBase> const&)
Line
Count
Source
329
776k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
776k
    if (ptr_)
331
776k
      ptr_->AddRef();
332
776k
  }
scoped_refptr<yb::server::Clock>::scoped_refptr(scoped_refptr<yb::server::Clock> const&)
Line
Count
Source
329
21.2M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
21.2M
    if (ptr_)
331
21.2M
      ptr_->AddRef();
332
21.2M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::scoped_refptr(scoped_refptr<yb::tablet::RaftGroupMetadata> const&)
Line
Count
Source
329
1.27M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
1.27M
    if (ptr_)
331
1.27M
      ptr_->AddRef();
332
1.27M
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::scoped_refptr(scoped_refptr<yb::tserver::RemoteBootstrapSession> const&)
Line
Count
Source
329
4.06k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
4.06k
    if (ptr_)
331
4.06k
      ptr_->AddRef();
332
4.06k
  }
scoped_refptr<yb::Trace>::scoped_refptr(scoped_refptr<yb::Trace> const&)
Line
Count
Source
329
24.4M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
24.4M
    if (ptr_)
331
24.4M
      ptr_->AddRef();
332
24.4M
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::scoped_refptr(scoped_refptr<yb::tserver::TransitionInProgressDeleter> const&)
Line
Count
Source
329
140k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
140k
    if (ptr_)
331
140k
      ptr_->AddRef();
332
140k
  }
scoped_refptr<yb::log::LogAnchorRegistry>::scoped_refptr(scoped_refptr<yb::log::LogAnchorRegistry> const&)
Line
Count
Source
329
602k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
602k
    if (ptr_)
331
602k
      ptr_->AddRef();
332
602k
  }
scoped_refptr<yb::client::internal::RemoteTablet>::scoped_refptr(scoped_refptr<yb::client::internal::RemoteTablet> const&)
Line
Count
Source
329
127M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
127M
    if (ptr_)
331
127M
      ptr_->AddRef();
332
127M
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::scoped_refptr(scoped_refptr<yb::AtomicGauge<unsigned int> > const&)
Line
Count
Source
329
20.2k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
20.2k
    if (ptr_)
331
20.2k
      ptr_->AddRef();
332
20.2k
  }
scoped_refptr<yb::log::Log>::scoped_refptr(scoped_refptr<yb::log::Log> const&)
Line
Count
Source
329
601k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
601k
    if (ptr_)
331
601k
      ptr_->AddRef();
332
601k
  }
scoped_refptr<yb::tablet::OperationDriver>::scoped_refptr(scoped_refptr<yb::tablet::OperationDriver> const&)
Line
Count
Source
329
963k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
963k
    if (ptr_)
331
963k
      ptr_->AddRef();
332
963k
  }
scoped_refptr<yb::consensus::ConsensusRound>::scoped_refptr(scoped_refptr<yb::consensus::ConsensusRound> const&)
Line
Count
Source
329
37.6M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
37.6M
    if (ptr_)
331
37.6M
      ptr_->AddRef();
332
37.6M
  }
scoped_refptr<yb::Thread>::scoped_refptr(scoped_refptr<yb::Thread> const&)
Line
Count
Source
329
162k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
162k
    if (ptr_)
331
162k
      ptr_->AddRef();
332
162k
  }
scoped_refptr<yb::AtomicGauge<long long> >::scoped_refptr(scoped_refptr<yb::AtomicGauge<long long> > const&)
Line
Count
Source
329
3.00M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
3.00M
    if (ptr_)
331
3.00M
      ptr_->AddRef();
332
3.00M
  }
scoped_refptr<yb::consensus::LeaderElection>::scoped_refptr(scoped_refptr<yb::consensus::LeaderElection> const&)
Line
Count
Source
329
3.65M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
3.65M
    if (ptr_)
331
3.65M
      ptr_->AddRef();
332
3.65M
  }
scoped_refptr<yb::AtomicMillisLag>::scoped_refptr(scoped_refptr<yb::AtomicMillisLag> const&)
Line
Count
Source
329
25.8k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
25.8k
    if (ptr_)
331
25.8k
      ptr_->AddRef();
332
25.8k
  }
scoped_refptr<yb::master::TableInfo>::scoped_refptr(scoped_refptr<yb::master::TableInfo> const&)
Line
Count
Source
329
569M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
569M
    if (ptr_)
331
569M
      ptr_->AddRef();
332
569M
  }
scoped_refptr<yb::master::NamespaceInfo>::scoped_refptr(scoped_refptr<yb::master::NamespaceInfo> const&)
Line
Count
Source
329
1.31M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
1.31M
    if (ptr_)
331
1.30M
      ptr_->AddRef();
332
1.31M
  }
scoped_refptr<yb::master::UDTypeInfo>::scoped_refptr(scoped_refptr<yb::master::UDTypeInfo> const&)
Line
Count
Source
329
647
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
647
    if (ptr_)
331
592
      ptr_->AddRef();
332
647
  }
scoped_refptr<yb::master::TablegroupInfo>::scoped_refptr(scoped_refptr<yb::master::TablegroupInfo> const&)
Line
Count
Source
329
274
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
274
    if (ptr_)
331
274
      ptr_->AddRef();
332
274
  }
scoped_refptr<yb::master::RedisConfigInfo>::scoped_refptr(scoped_refptr<yb::master::RedisConfigInfo> const&)
Line
Count
Source
329
355
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
355
    if (ptr_)
331
355
      ptr_->AddRef();
332
355
  }
scoped_refptr<yb::master::TasksTracker>::scoped_refptr(scoped_refptr<yb::master::TasksTracker> const&)
Line
Count
Source
329
999k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
999k
    if (ptr_)
331
999k
      ptr_->AddRef();
332
999k
  }
scoped_refptr<yb::master::RoleInfo>::scoped_refptr(scoped_refptr<yb::master::RoleInfo> const&)
Line
Count
Source
329
41.2k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
41.2k
    if (ptr_)
331
41.1k
      ptr_->AddRef();
332
41.2k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::scoped_refptr(scoped_refptr<yb::master::SnapshotInfo> const&)
scoped_refptr<yb::master::CDCStreamInfo>::scoped_refptr(scoped_refptr<yb::master::CDCStreamInfo> const&)
Line
Count
Source
329
10.9k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
10.9k
    if (ptr_)
331
10.9k
      ptr_->AddRef();
332
10.9k
  }
Unexecuted instantiation: scoped_refptr<yb::master::UniverseReplicationInfo>::scoped_refptr(scoped_refptr<yb::master::UniverseReplicationInfo> const&)
scoped_refptr<yb::client::internal::MetaCache>::scoped_refptr(scoped_refptr<yb::client::internal::MetaCache> const&)
Line
Count
Source
329
69.4k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
69.4k
    if (ptr_)
331
69.4k
      ptr_->AddRef();
332
69.4k
  }
scoped_refptr<yb::tools::ChecksumResultReporter>::scoped_refptr(scoped_refptr<yb::tools::ChecksumResultReporter> const&)
Line
Count
Source
329
4.37k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
4.37k
    if (ptr_)
331
4.37k
      ptr_->AddRef();
332
4.37k
  }
scoped_refptr<yb::pggate::PgTxnManager>::scoped_refptr(scoped_refptr<yb::pggate::PgTxnManager> const&)
Line
Count
Source
329
6.09k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
6.09k
    if (ptr_)
331
6.09k
      ptr_->AddRef();
332
6.09k
  }
scoped_refptr<yb::server::HybridClock>::scoped_refptr(scoped_refptr<yb::server::HybridClock> const&)
Line
Count
Source
329
6.09k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
6.09k
    if (ptr_)
331
6.09k
      ptr_->AddRef();
332
6.09k
  }
scoped_refptr<yb::pggate::PgSession>::scoped_refptr(scoped_refptr<yb::pggate::PgSession> const&)
Line
Count
Source
329
22.9M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
22.9M
    if (ptr_)
331
22.9M
      ptr_->AddRef();
332
22.9M
  }
scoped_refptr<yb::pggate::PgTableDesc>::scoped_refptr(scoped_refptr<yb::pggate::PgTableDesc> const&)
Line
Count
Source
329
36.1M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
36.1M
    if (ptr_)
331
35.2M
      ptr_->AddRef();
332
36.1M
  }
scoped_refptr<yb::ExternalMaster>::scoped_refptr(scoped_refptr<yb::ExternalMaster> const&)
Line
Count
Source
329
1.10k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
1.10k
    if (ptr_)
331
1.10k
      ptr_->AddRef();
332
1.10k
  }
scoped_refptr<yb::ExternalTabletServer>::scoped_refptr(scoped_refptr<yb::ExternalTabletServer> const&)
Line
Count
Source
329
12.4k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
12.4k
    if (ptr_)
331
12.4k
      ptr_->AddRef();
332
12.4k
  }
scoped_refptr<yb::FailureDetector>::scoped_refptr(scoped_refptr<yb::FailureDetector> const&)
Line
Count
Source
329
10
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
10
    if (ptr_)
331
10
      ptr_->AddRef();
332
10
  }
scoped_refptr<yb::Metric>::scoped_refptr(scoped_refptr<yb::Metric> const&)
Line
Count
Source
329
216M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
216M
    if (ptr_)
331
216M
      ptr_->AddRef();
332
216M
  }
scoped_refptr<yb::log::ReadableLogSegment>::scoped_refptr(scoped_refptr<yb::log::ReadableLogSegment> const&)
Line
Count
Source
329
11.0M
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
11.0M
    if (ptr_)
331
11.0M
      ptr_->AddRef();
332
11.0M
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::scoped_refptr(scoped_refptr<yb::log::LogIndex::IndexChunk> const&)
Line
Count
Source
329
300k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
300k
    if (ptr_)
331
300k
      ptr_->AddRef();
332
300k
  }
scoped_refptr<yb::log::LogIndex>::scoped_refptr(scoped_refptr<yb::log::LogIndex> const&)
Line
Count
Source
329
151k
  scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
330
151k
    if (ptr_)
331
151k
      ptr_->AddRef();
332
151k
  }
333
334
  template <typename U>
335
112M
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
112M
    if (ptr_)
337
112M
      ptr_->AddRef();
338
112M
  }
scoped_refptr<yb::rpc::RpcService>::scoped_refptr<yb::rpc::ServicePool>(scoped_refptr<yb::rpc::ServicePool> const&)
Line
Count
Source
335
209k
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
209k
    if (ptr_)
337
209k
      ptr_->AddRef();
338
209k
  }
scoped_refptr<yb::master::TableInfo const>::scoped_refptr<yb::master::TableInfo>(scoped_refptr<yb::master::TableInfo> const&)
Line
Count
Source
335
96.3M
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
96.3M
    if (ptr_)
337
96.3M
      ptr_->AddRef();
338
96.3M
  }
scoped_refptr<yb::ClockBase>::scoped_refptr<yb::server::Clock>(scoped_refptr<yb::server::Clock> const&)
Line
Count
Source
335
97.1k
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
97.1k
    if (ptr_)
337
97.0k
      ptr_->AddRef();
338
97.1k
  }
scoped_refptr<yb::ClockBase>::scoped_refptr<yb::server::HybridClock>(scoped_refptr<yb::server::HybridClock> const&)
Line
Count
Source
335
6.09k
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
6.09k
    if (ptr_)
337
6.09k
      ptr_->AddRef();
338
6.09k
  }
scoped_refptr<yb::Metric>::scoped_refptr<yb::Counter>(scoped_refptr<yb::Counter> const&)
Line
Count
Source
335
11.9M
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
11.9M
    if (ptr_)
337
11.9M
      ptr_->AddRef();
338
11.9M
  }
Unexecuted instantiation: scoped_refptr<yb::Metric>::scoped_refptr<yb::MillisLag>(scoped_refptr<yb::MillisLag> const&)
scoped_refptr<yb::Metric>::scoped_refptr<yb::AtomicMillisLag>(scoped_refptr<yb::AtomicMillisLag> const&)
Line
Count
Source
335
175k
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
175k
    if (ptr_)
337
175k
      ptr_->AddRef();
338
175k
  }
scoped_refptr<yb::Metric>::scoped_refptr<yb::Histogram>(scoped_refptr<yb::Histogram> const&)
Line
Count
Source
335
3.82M
  scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
336
3.82M
    if (ptr_)
337
3.82M
      ptr_->AddRef();
338
3.82M
  }
339
340
  template <typename U>
341
564M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
564M
    r.ptr_ = nullptr;
343
564M
  }
scoped_refptr<yb::log::LogIndex>::scoped_refptr<yb::log::LogIndex>(scoped_refptr<yb::log::LogIndex>&&)
Line
Count
Source
341
34
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
34
    r.ptr_ = nullptr;
343
34
  }
scoped_refptr<yb::log::ReadableLogSegment>::scoped_refptr<yb::log::ReadableLogSegment>(scoped_refptr<yb::log::ReadableLogSegment>&&)
Line
Count
Source
341
4.92M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
4.92M
    r.ptr_ = nullptr;
343
4.92M
  }
scoped_refptr<yb::FunctionGauge<unsigned long long> >::scoped_refptr<yb::FunctionGauge<unsigned long long> >(scoped_refptr<yb::FunctionGauge<unsigned long long> >&&)
Line
Count
Source
341
652k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
652k
    r.ptr_ = nullptr;
343
652k
  }
scoped_refptr<yb::FunctionGauge<long long> >::scoped_refptr<yb::FunctionGauge<long long> >(scoped_refptr<yb::FunctionGauge<long long> >&&)
Line
Count
Source
341
154k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
154k
    r.ptr_ = nullptr;
343
154k
  }
scoped_refptr<yb::master::TabletInfo>::scoped_refptr<yb::master::TabletInfo>(scoped_refptr<yb::master::TabletInfo>&&)
Line
Count
Source
341
102M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
102M
    r.ptr_ = nullptr;
343
102M
  }
scoped_refptr<yb::redisserver::BatchContext>::scoped_refptr<yb::redisserver::BatchContext>(scoped_refptr<yb::redisserver::BatchContext>&&)
Line
Count
Source
341
228
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
228
    r.ptr_ = nullptr;
343
228
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::scoped_refptr<yb::AtomicGauge<unsigned long long> >(scoped_refptr<yb::AtomicGauge<unsigned long long> >&&)
Line
Count
Source
341
46.8M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
46.8M
    r.ptr_ = nullptr;
343
46.8M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>(scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>&&)
Line
Count
Source
341
835k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
835k
    r.ptr_ = nullptr;
343
835k
  }
scoped_refptr<yb::rpc::RpcService>::scoped_refptr<yb::rpc::RpcService>(scoped_refptr<yb::rpc::RpcService>&&)
Line
Count
Source
341
2.33M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
2.33M
    r.ptr_ = nullptr;
343
2.33M
  }
scoped_refptr<yb::Counter>::scoped_refptr<yb::Counter>(scoped_refptr<yb::Counter>&&)
Line
Count
Source
341
34.3M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
34.3M
    r.ptr_ = nullptr;
343
34.3M
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::scoped_refptr<yb::tserver::RemoteBootstrapSession>(scoped_refptr<yb::tserver::RemoteBootstrapSession>&&)
Line
Count
Source
341
2.03k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
2.03k
    r.ptr_ = nullptr;
343
2.03k
  }
scoped_refptr<yb::server::Clock>::scoped_refptr<yb::server::Clock>(scoped_refptr<yb::server::Clock>&&)
Line
Count
Source
341
5.76M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
5.76M
    r.ptr_ = nullptr;
343
5.76M
  }
scoped_refptr<yb::Trace>::scoped_refptr<yb::Trace>(scoped_refptr<yb::Trace>&&)
Line
Count
Source
341
5.12M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
5.12M
    r.ptr_ = nullptr;
343
5.12M
  }
scoped_refptr<yb::Histogram>::scoped_refptr<yb::Histogram>(scoped_refptr<yb::Histogram>&&)
Line
Count
Source
341
30.7M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
30.7M
    r.ptr_ = nullptr;
343
30.7M
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::scoped_refptr<yb::tserver::TransitionInProgressDeleter>(scoped_refptr<yb::tserver::TransitionInProgressDeleter>&&)
Line
Count
Source
341
560k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
560k
    r.ptr_ = nullptr;
343
560k
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::scoped_refptr<yb::tablet::RaftGroupMetadata>(scoped_refptr<yb::tablet::RaftGroupMetadata>&&)
Line
Count
Source
341
448k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
448k
    r.ptr_ = nullptr;
343
448k
  }
scoped_refptr<yb::client::internal::RemoteTablet>::scoped_refptr<yb::client::internal::RemoteTablet>(scoped_refptr<yb::client::internal::RemoteTablet>&&)
Line
Count
Source
341
59.6M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
59.6M
    r.ptr_ = nullptr;
343
59.6M
  }
scoped_refptr<yb::MetricEntity>::scoped_refptr<yb::MetricEntity>(scoped_refptr<yb::MetricEntity>&&)
Line
Count
Source
341
32.5M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
32.5M
    r.ptr_ = nullptr;
343
32.5M
  }
scoped_refptr<yb::ClockBase>::scoped_refptr<yb::server::Clock>(scoped_refptr<yb::server::Clock>&&)
Line
Count
Source
341
8.75k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
8.75k
    r.ptr_ = nullptr;
343
8.75k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::scoped_refptr<yb::AtomicGauge<unsigned int> >(scoped_refptr<yb::AtomicGauge<unsigned int> >&&)
Line
Count
Source
341
320k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
320k
    r.ptr_ = nullptr;
343
320k
  }
scoped_refptr<yb::tablet::OperationDriver>::scoped_refptr<yb::tablet::OperationDriver>(scoped_refptr<yb::tablet::OperationDriver>&&)
Line
Count
Source
341
112M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
112M
    r.ptr_ = nullptr;
343
112M
  }
scoped_refptr<yb::consensus::ConsensusRound>::scoped_refptr<yb::consensus::ConsensusRound>(scoped_refptr<yb::consensus::ConsensusRound>&&)
Line
Count
Source
341
23.2M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
23.2M
    r.ptr_ = nullptr;
343
23.2M
  }
scoped_refptr<yb::Thread>::scoped_refptr<yb::Thread>(scoped_refptr<yb::Thread>&&)
Line
Count
Source
341
482k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
482k
    r.ptr_ = nullptr;
343
482k
  }
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>::scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>(scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>&&)
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::debug::ConvertableToTraceFormat>::scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>(scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>&&)
scoped_refptr<yb::AtomicGauge<long long> >::scoped_refptr<yb::AtomicGauge<long long> >(scoped_refptr<yb::AtomicGauge<long long> >&&)
Line
Count
Source
341
1.90M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
1.90M
    r.ptr_ = nullptr;
343
1.90M
  }
scoped_refptr<yb::consensus::LeaderElection>::scoped_refptr<yb::consensus::LeaderElection>(scoped_refptr<yb::consensus::LeaderElection>&&)
Line
Count
Source
341
2.93M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
2.93M
    r.ptr_ = nullptr;
343
2.93M
  }
scoped_refptr<yb::AtomicMillisLag>::scoped_refptr<yb::AtomicMillisLag>(scoped_refptr<yb::AtomicMillisLag>&&)
Line
Count
Source
341
150k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
150k
    r.ptr_ = nullptr;
343
150k
  }
scoped_refptr<yb::Metric>::scoped_refptr<yb::FunctionGauge<unsigned long long> >(scoped_refptr<yb::FunctionGauge<unsigned long long> >&&)
Line
Count
Source
341
343k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
343k
    r.ptr_ = nullptr;
343
343k
  }
scoped_refptr<yb::master::TableInfo>::scoped_refptr<yb::master::TableInfo>(scoped_refptr<yb::master::TableInfo>&&)
Line
Count
Source
341
21.1M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
21.1M
    r.ptr_ = nullptr;
343
21.1M
  }
scoped_refptr<yb::master::TableInfo const>::scoped_refptr<yb::master::TableInfo const>(scoped_refptr<yb::master::TableInfo const>&&)
Line
Count
Source
341
640
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
640
    r.ptr_ = nullptr;
343
640
  }
scoped_refptr<yb::master::NamespaceInfo>::scoped_refptr<yb::master::NamespaceInfo>(scoped_refptr<yb::master::NamespaceInfo>&&)
Line
Count
Source
341
1.56M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
1.56M
    r.ptr_ = nullptr;
343
1.56M
  }
scoped_refptr<yb::master::UDTypeInfo>::scoped_refptr<yb::master::UDTypeInfo>(scoped_refptr<yb::master::UDTypeInfo>&&)
Line
Count
Source
341
101
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
101
    r.ptr_ = nullptr;
343
101
  }
scoped_refptr<yb::master::RedisConfigInfo>::scoped_refptr<yb::master::RedisConfigInfo>(scoped_refptr<yb::master::RedisConfigInfo>&&)
Line
Count
Source
341
2.35k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
2.35k
    r.ptr_ = nullptr;
343
2.35k
  }
Unexecuted instantiation: scoped_refptr<yb::master::DeletedTableInfo>::scoped_refptr<yb::master::DeletedTableInfo>(scoped_refptr<yb::master::DeletedTableInfo>&&)
scoped_refptr<yb::master::RoleInfo>::scoped_refptr<yb::master::RoleInfo>(scoped_refptr<yb::master::RoleInfo>&&)
Line
Count
Source
341
5.57k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
5.57k
    r.ptr_ = nullptr;
343
5.57k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::scoped_refptr<yb::master::SnapshotInfo>(scoped_refptr<yb::master::SnapshotInfo>&&)
scoped_refptr<yb::master::CDCStreamInfo>::scoped_refptr<yb::master::CDCStreamInfo>(scoped_refptr<yb::master::CDCStreamInfo>&&)
Line
Count
Source
341
935
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
935
    r.ptr_ = nullptr;
343
935
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::scoped_refptr<yb::master::UniverseReplicationInfo>(scoped_refptr<yb::master::UniverseReplicationInfo>&&)
Line
Count
Source
341
4
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
4
    r.ptr_ = nullptr;
343
4
  }
scoped_refptr<yb::tools::ChecksumResultReporter>::scoped_refptr<yb::tools::ChecksumResultReporter>(scoped_refptr<yb::tools::ChecksumResultReporter>&&)
Line
Count
Source
341
4.37k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
4.37k
    r.ptr_ = nullptr;
343
4.37k
  }
scoped_refptr<yb::pggate::PgSession>::scoped_refptr<yb::pggate::PgSession>(scoped_refptr<yb::pggate::PgSession>&&)
Line
Count
Source
341
35.2M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
35.2M
    r.ptr_ = nullptr;
343
35.2M
  }
scoped_refptr<yb::pggate::PgTableDesc>::scoped_refptr<yb::pggate::PgTableDesc>(scoped_refptr<yb::pggate::PgTableDesc>&&)
Line
Count
Source
341
20.5M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
20.5M
    r.ptr_ = nullptr;
343
20.5M
  }
scoped_refptr<yb::pggate::PgTxnManager>::scoped_refptr<yb::pggate::PgTxnManager>(scoped_refptr<yb::pggate::PgTxnManager>&&)
Line
Count
Source
341
6.09k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
6.09k
    r.ptr_ = nullptr;
343
6.09k
  }
scoped_refptr<yb::server::HybridClock>::scoped_refptr<yb::server::HybridClock>(scoped_refptr<yb::server::HybridClock>&&)
Line
Count
Source
341
6.09k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
6.09k
    r.ptr_ = nullptr;
343
6.09k
  }
scoped_refptr<yb::ClockBase>::scoped_refptr<yb::ClockBase>(scoped_refptr<yb::ClockBase>&&)
Line
Count
Source
341
6.09k
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
6.09k
    r.ptr_ = nullptr;
343
6.09k
  }
scoped_refptr<yb::ExternalMaster>::scoped_refptr<yb::ExternalMaster>(scoped_refptr<yb::ExternalMaster>&&)
Line
Count
Source
341
10
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
10
    r.ptr_ = nullptr;
343
10
  }
scoped_refptr<yb::rpc::ServicePool>::scoped_refptr<yb::rpc::ServicePool>(scoped_refptr<yb::rpc::ServicePool>&&)
Line
Count
Source
341
368
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
368
    r.ptr_ = nullptr;
343
368
  }
scoped_refptr<yb::rpc::RpcService>::scoped_refptr<yb::rpc::ServicePool>(scoped_refptr<yb::rpc::ServicePool>&&)
Line
Count
Source
341
151
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
151
    r.ptr_ = nullptr;
343
151
  }
scoped_refptr<yb::Metric>::scoped_refptr<yb::Metric>(scoped_refptr<yb::Metric>&&)
Line
Count
Source
341
15.9M
  scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
342
15.9M
    r.ptr_ = nullptr;
343
15.9M
  }
Unexecuted instantiation: scoped_refptr<yb::MillisLag>::scoped_refptr<yb::MillisLag>(scoped_refptr<yb::MillisLag>&&)
344
345
3.74G
  ~scoped_refptr() {
346
3.74G
    if (ptr_)
347
2.74G
      ptr_->Release();
348
3.74G
  }
scoped_refptr<yb::MetricEntity>::~scoped_refptr()
Line
Count
Source
345
67.6M
  ~scoped_refptr() {
346
67.6M
    if (ptr_)
347
31.3M
      ptr_->Release();
348
67.6M
  }
scoped_refptr<yb::log::LogIndex>::~scoped_refptr()
Line
Count
Source
345
151k
  ~scoped_refptr() {
346
151k
    if (ptr_)
347
76.6k
      ptr_->Release();
348
151k
  }
scoped_refptr<yb::log::ReadableLogSegment>::~scoped_refptr()
Line
Count
Source
345
16.1M
  ~scoped_refptr() {
346
16.1M
    if (ptr_)
347
11.1M
      ptr_->Release();
348
16.1M
  }
scoped_refptr<yb::log::Log>::~scoped_refptr()
Line
Count
Source
345
1.05M
  ~scoped_refptr() {
346
1.05M
    if (ptr_)
347
752k
      ptr_->Release();
348
1.05M
  }
scoped_refptr<yb::Metric>::~scoped_refptr()
Line
Count
Source
345
251M
  ~scoped_refptr() {
346
251M
    if (ptr_)
347
219M
      ptr_->Release();
348
251M
  }
scoped_refptr<yb::FunctionGauge<unsigned long long> >::~scoped_refptr()
Line
Count
Source
345
1.04M
  ~scoped_refptr() {
346
1.04M
    if (ptr_)
347
51.9k
      ptr_->Release();
348
1.04M
  }
scoped_refptr<yb::FunctionGauge<long long> >::~scoped_refptr()
Line
Count
Source
345
180k
  ~scoped_refptr() {
346
180k
    if (ptr_)
347
25.9k
      ptr_->Release();
348
180k
  }
scoped_refptr<yb::server::Clock>::~scoped_refptr()
Line
Count
Source
345
41.6M
  ~scoped_refptr() {
346
41.6M
    if (ptr_)
347
35.9M
      ptr_->Release();
348
41.6M
  }
scoped_refptr<yb::master::TableInfo>::~scoped_refptr()
Line
Count
Source
345
594M
  ~scoped_refptr() {
346
594M
    if (ptr_)
347
568M
      ptr_->Release();
348
594M
  }
scoped_refptr<yb::master::TabletInfo>::~scoped_refptr()
Line
Count
Source
345
253M
  ~scoped_refptr() {
346
253M
    if (ptr_)
347
148M
      ptr_->Release();
348
253M
  }
scoped_refptr<yb::Histogram>::~scoped_refptr()
Line
Count
Source
345
376M
  ~scoped_refptr() {
346
376M
    if (ptr_)
347
332M
      ptr_->Release();
348
376M
  }
scoped_refptr<yb::Counter>::~scoped_refptr()
Line
Count
Source
345
181M
  ~scoped_refptr() {
346
181M
    if (ptr_)
347
119M
      ptr_->Release();
348
181M
  }
scoped_refptr<yb::redisserver::BatchContext>::~scoped_refptr()
Line
Count
Source
345
6.45M
  ~scoped_refptr() {
346
6.45M
    if (ptr_)
347
628k
      ptr_->Release();
348
6.45M
  }
scoped_refptr<yb::rpc::RpcService>::~scoped_refptr()
Line
Count
Source
345
2.78M
  ~scoped_refptr() {
346
2.78M
    if (ptr_)
347
445k
      ptr_->Release();
348
2.78M
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::~scoped_refptr()
Line
Count
Source
345
82.1M
  ~scoped_refptr() {
346
82.1M
    if (ptr_)
347
33.2M
      ptr_->Release();
348
82.1M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::~scoped_refptr()
Line
Count
Source
345
1.25M
  ~scoped_refptr() {
346
1.25M
    if (ptr_)
347
420k
      ptr_->Release();
348
1.25M
  }
scoped_refptr<yb::client::internal::RemoteTablet>::~scoped_refptr()
Line
Count
Source
345
274M
  ~scoped_refptr() {
346
274M
    if (ptr_)
347
165M
      ptr_->Release();
348
274M
  }
scoped_refptr<yb::ClockBase>::~scoped_refptr()
Line
Count
Source
345
870k
  ~scoped_refptr() {
346
870k
    if (ptr_)
347
843k
      ptr_->Release();
348
870k
  }
scoped_refptr<yb::Thread>::~scoped_refptr()
Line
Count
Source
345
4.52M
  ~scoped_refptr() {
346
4.52M
    if (ptr_)
347
4.04M
      ptr_->Release();
348
4.52M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::~scoped_refptr()
Line
Count
Source
345
1.66M
  ~scoped_refptr() {
346
1.66M
    if (ptr_)
347
1.21M
      ptr_->Release();
348
1.66M
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::~scoped_refptr()
Line
Count
Source
345
19.3k
  ~scoped_refptr() {
346
19.3k
    if (ptr_)
347
17.3k
      ptr_->Release();
348
19.3k
  }
scoped_refptr<yb::Trace>::~scoped_refptr()
Line
Count
Source
345
594M
  ~scoped_refptr() {
346
594M
    if (ptr_)
347
292M
      ptr_->Release();
348
594M
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::~scoped_refptr()
Line
Count
Source
345
931k
  ~scoped_refptr() {
346
931k
    if (ptr_)
347
358k
      ptr_->Release();
348
931k
  }
scoped_refptr<yb::log::LogAnchorRegistry>::~scoped_refptr()
Line
Count
Source
345
602k
  ~scoped_refptr() {
346
602k
    if (ptr_)
347
602k
      ptr_->Release();
348
602k
  }
scoped_refptr<yb::internal::BindStateBase>::~scoped_refptr()
Line
Count
Source
345
307M
  ~scoped_refptr() {
346
307M
    if (ptr_)
347
304M
      ptr_->Release();
348
307M
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::~scoped_refptr()
Line
Count
Source
345
437k
  ~scoped_refptr() {
346
437k
    if (ptr_)
347
96.0k
      ptr_->Release();
348
437k
  }
scoped_refptr<yb::tablet::OperationDriver>::~scoped_refptr()
Line
Count
Source
345
253M
  ~scoped_refptr() {
346
253M
    if (ptr_)
347
141M
      ptr_->Release();
348
253M
  }
scoped_refptr<yb::consensus::ConsensusRound>::~scoped_refptr()
Line
Count
Source
345
105M
  ~scoped_refptr() {
346
105M
    if (ptr_)
347
80.8M
      ptr_->Release();
348
105M
  }
scoped_refptr<yb::AtomicGauge<long long> >::~scoped_refptr()
Line
Count
Source
345
10.4M
  ~scoped_refptr() {
346
10.4M
    if (ptr_)
347
5.24M
      ptr_->Release();
348
10.4M
  }
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>::~scoped_refptr()
scoped_refptr<yb::debug::ConvertableToTraceFormat>::~scoped_refptr()
Line
Count
Source
345
638k
  ~scoped_refptr() {
346
638k
    if (ptr_)
347
0
      ptr_->Release();
348
638k
  }
scoped_refptr<yb::consensus::LeaderElection>::~scoped_refptr()
Line
Count
Source
345
10.0M
  ~scoped_refptr() {
346
10.0M
    if (ptr_)
347
5.84M
      ptr_->Release();
348
10.0M
  }
scoped_refptr<yb::AtomicMillisLag>::~scoped_refptr()
Line
Count
Source
345
277k
  ~scoped_refptr() {
346
277k
    if (ptr_)
347
101k
      ptr_->Release();
348
277k
  }
scoped_refptr<yb::rpc::ServicePool>::~scoped_refptr()
Line
Count
Source
345
209k
  ~scoped_refptr() {
346
209k
    if (ptr_)
347
209k
      ptr_->Release();
348
209k
  }
scoped_refptr<yb::master::NamespaceInfo>::~scoped_refptr()
Line
Count
Source
345
2.90M
  ~scoped_refptr() {
346
2.90M
    if (ptr_)
347
1.32M
      ptr_->Release();
348
2.90M
  }
scoped_refptr<yb::master::TableInfo const>::~scoped_refptr()
Line
Count
Source
345
96.3M
  ~scoped_refptr() {
346
96.3M
    if (ptr_)
347
96.3M
      ptr_->Release();
348
96.3M
  }
scoped_refptr<yb::master::SysConfigInfo>::~scoped_refptr()
Line
Count
Source
345
278
  ~scoped_refptr() {
346
278
    if (ptr_)
347
242
      ptr_->Release();
348
278
  }
scoped_refptr<yb::master::RoleInfo>::~scoped_refptr()
Line
Count
Source
345
57.4k
  ~scoped_refptr() {
346
57.4k
    if (ptr_)
347
45.3k
      ptr_->Release();
348
57.4k
  }
scoped_refptr<yb::master::TasksTracker>::~scoped_refptr()
Line
Count
Source
345
503k
  ~scoped_refptr() {
346
503k
    if (ptr_)
347
503k
      ptr_->Release();
348
503k
  }
scoped_refptr<yb::master::UDTypeInfo>::~scoped_refptr()
Line
Count
Source
345
1.09k
  ~scoped_refptr() {
346
1.09k
    if (ptr_)
347
731
      ptr_->Release();
348
1.09k
  }
scoped_refptr<yb::master::TablegroupInfo>::~scoped_refptr()
Line
Count
Source
345
327
  ~scoped_refptr() {
346
327
    if (ptr_)
347
327
      ptr_->Release();
348
327
  }
scoped_refptr<yb::master::RedisConfigInfo>::~scoped_refptr()
Line
Count
Source
345
3.72k
  ~scoped_refptr() {
346
3.72k
    if (ptr_)
347
539
      ptr_->Release();
348
3.72k
  }
Unexecuted instantiation: scoped_refptr<yb::master::DeletedTableInfo>::~scoped_refptr()
scoped_refptr<yb::master::CDCStreamInfo>::~scoped_refptr()
Line
Count
Source
345
18.0k
  ~scoped_refptr() {
346
18.0k
    if (ptr_)
347
11.3k
      ptr_->Release();
348
18.0k
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::~scoped_refptr()
Line
Count
Source
345
7
  ~scoped_refptr() {
346
7
    if (ptr_)
347
1
      ptr_->Release();
348
7
  }
scoped_refptr<yb::master::SnapshotInfo>::~scoped_refptr()
Line
Count
Source
345
35
  ~scoped_refptr() {
346
35
    if (ptr_)
347
0
      ptr_->Release();
348
35
  }
scoped_refptr<yb::client::internal::MetaCache>::~scoped_refptr()
Line
Count
Source
345
152k
  ~scoped_refptr() {
346
152k
    if (ptr_)
347
139k
      ptr_->Release();
348
152k
  }
scoped_refptr<yb::tools::ChecksumResultReporter>::~scoped_refptr()
Line
Count
Source
345
13.7k
  ~scoped_refptr() {
346
13.7k
    if (ptr_)
347
9.41k
      ptr_->Release();
348
13.7k
  }
scoped_refptr<yb::pggate::PgTableDesc>::~scoped_refptr()
Line
Count
Source
345
78.3M
  ~scoped_refptr() {
346
78.3M
    if (ptr_)
347
46.6M
      ptr_->Release();
348
78.3M
  }
scoped_refptr<yb::pggate::PgSession>::~scoped_refptr()
Line
Count
Source
345
58.2M
  ~scoped_refptr() {
346
58.2M
    if (ptr_)
347
22.9M
      ptr_->Release();
348
58.2M
  }
scoped_refptr<yb::server::HybridClock>::~scoped_refptr()
Line
Count
Source
345
18.2k
  ~scoped_refptr() {
346
18.2k
    if (ptr_)
347
12.1k
      ptr_->Release();
348
18.2k
  }
scoped_refptr<yb::pggate::PgTxnManager>::~scoped_refptr()
Line
Count
Source
345
18.2k
  ~scoped_refptr() {
346
18.2k
    if (ptr_)
347
6.07k
      ptr_->Release();
348
18.2k
  }
scoped_refptr<yb::ExternalMaster>::~scoped_refptr()
Line
Count
Source
345
1.63k
  ~scoped_refptr() {
346
1.63k
    if (ptr_)
347
1.62k
      ptr_->Release();
348
1.63k
  }
scoped_refptr<yb::ExternalTabletServer>::~scoped_refptr()
Line
Count
Source
345
13.4k
  ~scoped_refptr() {
346
13.4k
    if (ptr_)
347
13.4k
      ptr_->Release();
348
13.4k
  }
scoped_refptr<yb::RefCountedString>::~scoped_refptr()
Line
Count
Source
345
319k
  ~scoped_refptr() {
346
319k
    if (ptr_)
347
362
      ptr_->Release();
348
319k
  }
scoped_refptr<yb::FailureDetector>::~scoped_refptr()
Line
Count
Source
345
11
  ~scoped_refptr() {
346
11
    if (ptr_)
347
11
      ptr_->Release();
348
11
  }
scoped_refptr<yb::MillisLag>::~scoped_refptr()
Line
Count
Source
345
1
  ~scoped_refptr() {
346
1
    if (ptr_)
347
1
      ptr_->Release();
348
1
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::~scoped_refptr()
Line
Count
Source
345
66.2M
  ~scoped_refptr() {
346
66.2M
    if (ptr_)
347
66.0M
      ptr_->Release();
348
66.2M
  }
349
350
8.16G
  T* get() const { return ptr_; }
scoped_refptr<yb::log::LogIndex>::get() const
Line
Count
Source
350
34
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::RefCountedString>::get() const
scoped_refptr<yb::log::ReadableLogSegment>::get() const
Line
Count
Source
350
30.0M
  T* get() const { return ptr_; }
scoped_refptr<yb::Metric>::get() const
Line
Count
Source
350
54.1M
  T* get() const { return ptr_; }
scoped_refptr<yb::internal::BindStateBase>::get() const
Line
Count
Source
350
242M
  T* get() const { return ptr_; }
scoped_refptr<yb::FunctionGauge<unsigned long long> >::get() const
Line
Count
Source
350
996k
  T* get() const { return ptr_; }
scoped_refptr<yb::FunctionGauge<long long> >::get() const
Line
Count
Source
350
154k
  T* get() const { return ptr_; }
scoped_refptr<yb::tablet::RaftGroupMetadata>::get() const
Line
Count
Source
350
41.5M
  T* get() const { return ptr_; }
scoped_refptr<yb::master::TabletInfo>::get() const
Line
Count
Source
350
108M
  T* get() const { return ptr_; }
scoped_refptr<yb::redisserver::BatchContext>::get() const
Line
Count
Source
350
228
  T* get() const { return ptr_; }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::get() const
Line
Count
Source
350
46.9M
  T* get() const { return ptr_; }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::get() const
Line
Count
Source
350
1.04M
  T* get() const { return ptr_; }
scoped_refptr<yb::rpc::RpcService>::get() const
Line
Count
Source
350
2.33M
  T* get() const { return ptr_; }
scoped_refptr<yb::Counter>::get() const
Line
Count
Source
350
120M
  T* get() const { return ptr_; }
scoped_refptr<yb::server::Clock>::get() const
Line
Count
Source
350
134M
  T* get() const { return ptr_; }
scoped_refptr<yb::MetricEntity>::get() const
Line
Count
Source
350
43.0M
  T* get() const { return ptr_; }
scoped_refptr<yb::Thread>::get() const
Line
Count
Source
350
5.83G
  T* get() const { return ptr_; }
scoped_refptr<yb::Trace>::get() const
Line
Count
Source
350
456M
  T* get() const { return ptr_; }
scoped_refptr<yb::consensus::ConsensusRound>::get() const
Line
Count
Source
350
112M
  T* get() const { return ptr_; }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::get() const
Line
Count
Source
350
2.03k
  T* get() const { return ptr_; }
scoped_refptr<yb::Histogram>::get() const
Line
Count
Source
350
85.1M
  T* get() const { return ptr_; }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::get() const
Line
Count
Source
350
560k
  T* get() const { return ptr_; }
scoped_refptr<yb::log::Log>::get() const
Line
Count
Source
350
608k
  T* get() const { return ptr_; }
scoped_refptr<yb::client::internal::RemoteTablet>::get() const
Line
Count
Source
350
242M
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::RefCountedMemory>::get() const
scoped_refptr<yb::AtomicGauge<unsigned int> >::get() const
Line
Count
Source
350
320k
  T* get() const { return ptr_; }
scoped_refptr<yb::tablet::OperationDriver>::get() const
Line
Count
Source
350
374M
  T* get() const { return ptr_; }
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>::get() const
Unexecuted instantiation: scoped_refptr<yb::debug::ConvertableToTraceFormat>::get() const
scoped_refptr<yb::AtomicGauge<long long> >::get() const
Line
Count
Source
350
1.90M
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::log::LogAnchorRegistry>::get() const
scoped_refptr<yb::consensus::LeaderElection>::get() const
Line
Count
Source
350
2.93M
  T* get() const { return ptr_; }
scoped_refptr<yb::AtomicMillisLag>::get() const
Line
Count
Source
350
326k
  T* get() const { return ptr_; }
scoped_refptr<yb::rpc::ServicePool>::get() const
Line
Count
Source
350
209k
  T* get() const { return ptr_; }
scoped_refptr<yb::master::TableInfo>::get() const
Line
Count
Source
350
118M
  T* get() const { return ptr_; }
scoped_refptr<yb::master::TableInfo const>::get() const
Line
Count
Source
350
640
  T* get() const { return ptr_; }
scoped_refptr<yb::master::SysConfigInfo>::get() const
Line
Count
Source
350
4.85M
  T* get() const { return ptr_; }
scoped_refptr<yb::master::NamespaceInfo>::get() const
Line
Count
Source
350
1.57M
  T* get() const { return ptr_; }
scoped_refptr<yb::master::UDTypeInfo>::get() const
Line
Count
Source
350
196
  T* get() const { return ptr_; }
scoped_refptr<yb::master::RedisConfigInfo>::get() const
Line
Count
Source
350
2.55k
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::master::TablegroupInfo>::get() const
Unexecuted instantiation: scoped_refptr<yb::master::DeletedTableInfo>::get() const
scoped_refptr<yb::master::RoleInfo>::get() const
Line
Count
Source
350
24.6k
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::get() const
scoped_refptr<yb::master::CDCStreamInfo>::get() const
Line
Count
Source
350
6.56k
  T* get() const { return ptr_; }
scoped_refptr<yb::master::UniverseReplicationInfo>::get() const
Line
Count
Source
350
9
  T* get() const { return ptr_; }
scoped_refptr<yb::client::internal::MetaCache>::get() const
Line
Count
Source
350
192k
  T* get() const { return ptr_; }
scoped_refptr<yb::tools::ChecksumResultReporter>::get() const
Line
Count
Source
350
8.75k
  T* get() const { return ptr_; }
scoped_refptr<yb::pggate::PgTxnManager>::get() const
Line
Count
Source
350
6.09k
  T* get() const { return ptr_; }
scoped_refptr<yb::pggate::PgTableDesc>::get() const
Line
Count
Source
350
63.7M
  T* get() const { return ptr_; }
scoped_refptr<yb::pggate::PgSession>::get() const
Line
Count
Source
350
35.2M
  T* get() const { return ptr_; }
scoped_refptr<yb::server::HybridClock>::get() const
Line
Count
Source
350
12.1k
  T* get() const { return ptr_; }
scoped_refptr<yb::ClockBase>::get() const
Line
Count
Source
350
6.09k
  T* get() const { return ptr_; }
scoped_refptr<yb::ExternalMaster>::get() const
Line
Count
Source
350
62.9k
  T* get() const { return ptr_; }
scoped_refptr<yb::ExternalTabletServer>::get() const
Line
Count
Source
350
4.52k
  T* get() const { return ptr_; }
Unexecuted instantiation: scoped_refptr<yb::MillisLag>::get() const
351
352
  T* detach() {
353
    T *temp = ptr_;
354
    ptr_ = nullptr;
355
    return temp;
356
  }
357
358
2.91G
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::Trace>::operator bool() const
Line
Count
Source
358
525M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::redisserver::BatchContext>::operator bool() const
Line
Count
Source
358
208k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::Histogram>::operator bool() const
Line
Count
Source
358
859M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::server::Clock>::operator bool() const
Line
Count
Source
358
12.0M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::Thread>::operator bool() const
Line
Count
Source
358
11.0k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::MetricEntity>::operator bool() const
Line
Count
Source
358
37.3M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::log::Log>::operator bool() const
Line
Count
Source
358
75.5k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::Counter>::operator bool() const
Line
Count
Source
358
815M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::AtomicGauge<long long> >::operator bool() const
Line
Count
Source
358
395M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::log::ReadableLogSegment>::operator bool() const
Line
Count
Source
358
4.82M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::consensus::LeaderElection>::operator bool() const
Line
Count
Source
358
737k
  explicit operator bool() const { return ptr_ != nullptr; }
Unexecuted instantiation: scoped_refptr<yb::consensus::ConsensusRound>::operator bool() const
scoped_refptr<yb::master::TabletInfo>::operator bool() const
Line
Count
Source
358
262k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::TableInfo>::operator bool() const
Line
Count
Source
358
97.8M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::NamespaceInfo>::operator bool() const
Line
Count
Source
358
11.8k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::UDTypeInfo>::operator bool() const
Line
Count
Source
358
47
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::TasksTracker>::operator bool() const
Line
Count
Source
358
421k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::SysConfigInfo>::operator bool() const
Line
Count
Source
358
2.53k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::RoleInfo>::operator bool() const
Line
Count
Source
358
3.75k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::master::UniverseReplicationInfo>::operator bool() const
Line
Count
Source
358
2
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::client::internal::RemoteTablet>::operator bool() const
Line
Count
Source
358
121M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::ClockBase>::operator bool() const
Line
Count
Source
358
130k
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::AtomicGauge<unsigned int> >::operator bool() const
Line
Count
Source
358
1.61M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::pggate::PgTableDesc>::operator bool() const
Line
Count
Source
358
38.9M
  explicit operator bool() const { return ptr_ != nullptr; }
scoped_refptr<yb::ExternalMaster>::operator bool() const
Line
Count
Source
358
1.03k
  explicit operator bool() const { return ptr_ != nullptr; }
Unexecuted instantiation: scoped_refptr<yb::tablet::RaftGroupMetadata>::operator bool() const
scoped_refptr<yb::rpc::ServicePool>::operator bool() const
Line
Count
Source
358
146
  explicit operator bool() const { return ptr_ != nullptr; }
359
360
136M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::Thread>::operator!() const
Line
Count
Source
360
8.88k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator!() const
Line
Count
Source
360
2.01k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::log::ReadableLogSegment>::operator!() const
Line
Count
Source
360
43.4k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::log::Log>::operator!() const
Line
Count
Source
360
150k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::rpc::RpcService>::operator!() const
Line
Count
Source
360
209k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::consensus::ConsensusRound>::operator!() const
Line
Count
Source
360
7.94M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::TableInfo>::operator!() const
Line
Count
Source
360
57.2M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::SysConfigInfo>::operator!() const
Line
Count
Source
360
12.7k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::NamespaceInfo>::operator!() const
Line
Count
Source
360
201k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::UDTypeInfo>::operator!() const
Line
Count
Source
360
240
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::TablegroupInfo>::operator!() const
Line
Count
Source
360
68
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::TabletInfo>::operator!() const
Line
Count
Source
360
2.73M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::RedisConfigInfo>::operator!() const
Line
Count
Source
360
1.35k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::master::RoleInfo>::operator!() const
Line
Count
Source
360
3.76k
  bool operator!() const { return ptr_ == nullptr; }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::operator!() const
scoped_refptr<yb::master::CDCStreamInfo>::operator!() const
Line
Count
Source
360
5.52k
  bool operator!() const { return ptr_ == nullptr; }
Unexecuted instantiation: scoped_refptr<yb::master::UniverseReplicationInfo>::operator!() const
scoped_refptr<yb::Histogram>::operator!() const
Line
Count
Source
360
14.2M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::client::internal::RemoteTablet>::operator!() const
Line
Count
Source
360
15.5M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::ClockBase>::operator!() const
Line
Count
Source
360
9.81k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::pggate::PgSession>::operator!() const
Line
Count
Source
360
6.09k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::pggate::PgTableDesc>::operator!() const
Line
Count
Source
360
13.8M
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::rpc::ServicePool>::operator!() const
Line
Count
Source
360
151
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::Counter>::operator!() const
Line
Count
Source
360
23.5M
  bool operator!() const { return ptr_ == nullptr; }
Unexecuted instantiation: scoped_refptr<yb::MillisLag>::operator!() const
scoped_refptr<yb::AtomicMillisLag>::operator!() const
Line
Count
Source
360
176k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::MetricEntity>::operator!() const
Line
Count
Source
360
350k
  bool operator!() const { return ptr_ == nullptr; }
scoped_refptr<yb::log::LogIndex>::operator!() const
Line
Count
Source
360
3.37k
  bool operator!() const { return ptr_ == nullptr; }
361
362
11.9G
  T* operator->() const {
363
11.9G
    ScopedRefPtrCheck(ptr_ != nullptr);
364
11.9G
    return ptr_;
365
11.9G
  }
scoped_refptr<yb::log::ReadableLogSegment>::operator->() const
Line
Count
Source
362
90.5M
  T* operator->() const {
363
90.5M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
90.5M
    return ptr_;
365
90.5M
  }
scoped_refptr<yb::log::Log>::operator->() const
Line
Count
Source
362
196M
  T* operator->() const {
363
196M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
196M
    return ptr_;
365
196M
  }
scoped_refptr<yb::MetricEntity>::operator->() const
Line
Count
Source
362
67.1M
  T* operator->() const {
363
67.1M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
67.1M
    return ptr_;
365
67.1M
  }
scoped_refptr<yb::FunctionGauge<unsigned long long> >::operator->() const
Line
Count
Source
362
51.9k
  T* operator->() const {
363
51.9k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
51.9k
    return ptr_;
365
51.9k
  }
scoped_refptr<yb::FunctionGauge<long long> >::operator->() const
Line
Count
Source
362
25.9k
  T* operator->() const {
363
25.9k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
25.9k
    return ptr_;
365
25.9k
  }
scoped_refptr<yb::master::TableInfo>::operator->() const
Line
Count
Source
362
561M
  T* operator->() const {
363
561M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
561M
    return ptr_;
365
561M
  }
scoped_refptr<yb::master::TabletInfo>::operator->() const
Line
Count
Source
362
292M
  T* operator->() const {
363
292M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
292M
    return ptr_;
365
292M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator->() const
Line
Count
Source
362
106M
  T* operator->() const {
363
106M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
106M
    return ptr_;
365
106M
  }
scoped_refptr<yb::redisserver::BatchContext>::operator->() const
Line
Count
Source
362
13.5k
  T* operator->() const {
363
13.5k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
13.5k
    return ptr_;
365
13.5k
  }
scoped_refptr<yb::Histogram>::operator->() const
Line
Count
Source
362
690M
  T* operator->() const {
363
690M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
690M
    return ptr_;
365
690M
  }
scoped_refptr<yb::Trace>::operator->() const
Line
Count
Source
362
608M
  T* operator->() const {
363
608M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
608M
    return ptr_;
365
608M
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::operator->() const
Line
Count
Source
362
3.19G
  T* operator->() const {
363
3.19G
    ScopedRefPtrCheck(ptr_ != nullptr);
364
3.19G
    return ptr_;
365
3.19G
  }
scoped_refptr<yb::client::internal::RemoteTablet>::operator->() const
Line
Count
Source
362
148M
  T* operator->() const {
363
148M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
148M
    return ptr_;
365
148M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::operator->() const
Line
Count
Source
362
209k
  T* operator->() const {
363
209k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
209k
    return ptr_;
365
209k
  }
scoped_refptr<yb::Counter>::operator->() const
Line
Count
Source
362
925M
  T* operator->() const {
363
925M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
925M
    return ptr_;
365
925M
  }
scoped_refptr<yb::server::Clock>::operator->() const
Line
Count
Source
362
127M
  T* operator->() const {
363
127M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
127M
    return ptr_;
365
127M
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::operator->() const
Line
Count
Source
362
68.7k
  T* operator->() const {
363
68.7k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
68.7k
    return ptr_;
365
68.7k
  }
scoped_refptr<yb::Thread>::operator->() const
Line
Count
Source
362
19.7M
  T* operator->() const {
363
19.7M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
19.7M
    return ptr_;
365
19.7M
  }
scoped_refptr<yb::log::LogAnchorRegistry>::operator->() const
Line
Count
Source
362
50.1M
  T* operator->() const {
363
50.1M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
50.1M
    return ptr_;
365
50.1M
  }
scoped_refptr<yb::internal::BindStateBase>::operator->() const
Line
Count
Source
362
86.4M
  T* operator->() const {
363
86.4M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
86.4M
    return ptr_;
365
86.4M
  }
Unexecuted instantiation: scoped_refptr<yb::RefCountedMemory>::operator->() const
scoped_refptr<yb::tablet::OperationDriver>::operator->() const
Line
Count
Source
362
49.8M
  T* operator->() const {
363
49.8M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
49.8M
    return ptr_;
365
49.8M
  }
scoped_refptr<yb::consensus::ConsensusRound>::operator->() const
Line
Count
Source
362
216M
  T* operator->() const {
363
216M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
216M
    return ptr_;
365
216M
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::operator->() const
Line
Count
Source
362
6.74M
  T* operator->() const {
363
6.74M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
6.74M
    return ptr_;
365
6.74M
  }
scoped_refptr<yb::AtomicGauge<long long> >::operator->() const
Line
Count
Source
362
3.45G
  T* operator->() const {
363
3.45G
    ScopedRefPtrCheck(ptr_ != nullptr);
364
3.45G
    return ptr_;
365
3.45G
  }
scoped_refptr<yb::rpc::RpcService>::operator->() const
Line
Count
Source
362
90.7M
  T* operator->() const {
363
90.7M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
90.7M
    return ptr_;
365
90.7M
  }
scoped_refptr<yb::consensus::LeaderElection>::operator->() const
Line
Count
Source
362
737k
  T* operator->() const {
363
737k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
737k
    return ptr_;
365
737k
  }
scoped_refptr<yb::AtomicMillisLag>::operator->() const
Line
Count
Source
362
25.6M
  T* operator->() const {
363
25.6M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
25.6M
    return ptr_;
365
25.6M
  }
scoped_refptr<yb::master::TasksTracker>::operator->() const
Line
Count
Source
362
1.99M
  T* operator->() const {
363
1.99M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
1.99M
    return ptr_;
365
1.99M
  }
scoped_refptr<yb::master::NamespaceInfo>::operator->() const
Line
Count
Source
362
1.43M
  T* operator->() const {
363
1.43M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
1.43M
    return ptr_;
365
1.43M
  }
scoped_refptr<yb::master::SysConfigInfo>::operator->() const
Line
Count
Source
362
4.47M
  T* operator->() const {
363
4.47M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
4.47M
    return ptr_;
365
4.47M
  }
scoped_refptr<yb::master::TableInfo const>::operator->() const
Line
Count
Source
362
96.4M
  T* operator->() const {
363
96.4M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
96.4M
    return ptr_;
365
96.4M
  }
scoped_refptr<yb::master::TablegroupInfo>::operator->() const
Line
Count
Source
362
407
  T* operator->() const {
363
407
    ScopedRefPtrCheck(ptr_ != nullptr);
364
407
    return ptr_;
365
407
  }
scoped_refptr<yb::master::UDTypeInfo>::operator->() const
Line
Count
Source
362
3.67k
  T* operator->() const {
363
3.67k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
3.67k
    return ptr_;
365
3.67k
  }
scoped_refptr<yb::master::RedisConfigInfo>::operator->() const
Line
Count
Source
362
542
  T* operator->() const {
363
542
    ScopedRefPtrCheck(ptr_ != nullptr);
364
542
    return ptr_;
365
542
  }
scoped_refptr<yb::master::RoleInfo>::operator->() const
Line
Count
Source
362
81.9k
  T* operator->() const {
363
81.9k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
81.9k
    return ptr_;
365
81.9k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::operator->() const
scoped_refptr<yb::master::CDCStreamInfo>::operator->() const
Line
Count
Source
362
9.32k
  T* operator->() const {
363
9.32k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
9.32k
    return ptr_;
365
9.32k
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::operator->() const
Line
Count
Source
362
13
  T* operator->() const {
363
13
    ScopedRefPtrCheck(ptr_ != nullptr);
364
13
    return ptr_;
365
13
  }
scoped_refptr<yb::client::internal::MetaCache>::operator->() const
Line
Count
Source
362
25.5M
  T* operator->() const {
363
25.5M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
25.5M
    return ptr_;
365
25.5M
  }
scoped_refptr<yb::ClockBase>::operator->() const
Line
Count
Source
362
35.7M
  T* operator->() const {
363
35.7M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
35.7M
    return ptr_;
365
35.7M
  }
scoped_refptr<yb::tools::ChecksumResultReporter>::operator->() const
Line
Count
Source
362
5.69k
  T* operator->() const {
363
5.69k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
5.69k
    return ptr_;
365
5.69k
  }
scoped_refptr<yb::pggate::PgTableDesc>::operator->() const
Line
Count
Source
362
179M
  T* operator->() const {
363
179M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
179M
    return ptr_;
365
179M
  }
scoped_refptr<yb::pggate::PgSession>::operator->() const
Line
Count
Source
362
40.5M
  T* operator->() const {
363
40.5M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
40.5M
    return ptr_;
365
40.5M
  }
scoped_refptr<yb::server::HybridClock>::operator->() const
Line
Count
Source
362
1.04M
  T* operator->() const {
363
1.04M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
1.04M
    return ptr_;
365
1.04M
  }
scoped_refptr<yb::pggate::PgTxnManager>::operator->() const
Line
Count
Source
362
15.1M
  T* operator->() const {
363
15.1M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
15.1M
    return ptr_;
365
15.1M
  }
scoped_refptr<yb::ExternalMaster>::operator->() const
Line
Count
Source
362
13.4k
  T* operator->() const {
363
13.4k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
13.4k
    return ptr_;
365
13.4k
  }
scoped_refptr<yb::ExternalTabletServer>::operator->() const
Line
Count
Source
362
4.67k
  T* operator->() const {
363
4.67k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
4.67k
    return ptr_;
365
4.67k
  }
scoped_refptr<yb::rpc::ServicePool>::operator->() const
Line
Count
Source
362
83
  T* operator->() const {
363
83
    ScopedRefPtrCheck(ptr_ != nullptr);
364
83
    return ptr_;
365
83
  }
scoped_refptr<yb::RefCountedString>::operator->() const
Line
Count
Source
362
634k
  T* operator->() const {
363
634k
    ScopedRefPtrCheck(ptr_ != nullptr);
364
634k
    return ptr_;
365
634k
  }
Unexecuted instantiation: scoped_refptr<yb::debug::ConvertableToTraceFormat>::operator->() const
scoped_refptr<yb::FailureDetector>::operator->() const
Line
Count
Source
362
53
  T* operator->() const {
363
53
    ScopedRefPtrCheck(ptr_ != nullptr);
364
53
    return ptr_;
365
53
  }
scoped_refptr<yb::Metric>::operator->() const
Line
Count
Source
362
431M
  T* operator->() const {
363
431M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
431M
    return ptr_;
365
431M
  }
scoped_refptr<yb::log::LogIndex>::operator->() const
Line
Count
Source
362
65.8M
  T* operator->() const {
363
65.8M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
65.8M
    return ptr_;
365
65.8M
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::operator->() const
Line
Count
Source
362
65.9M
  T* operator->() const {
363
65.9M
    ScopedRefPtrCheck(ptr_ != nullptr);
364
65.9M
    return ptr_;
365
65.9M
  }
366
367
717M
  T& operator*() const {
368
717M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
717M
    return *ptr_;
370
717M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::operator*() const
Line
Count
Source
367
208k
  T& operator*() const {
368
208k
    ScopedRefPtrCheck(ptr_ != nullptr);
369
208k
    return *ptr_;
370
208k
  }
scoped_refptr<yb::server::Clock>::operator*() const
Line
Count
Source
367
33.0M
  T& operator*() const {
368
33.0M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
33.0M
    return *ptr_;
370
33.0M
  }
scoped_refptr<yb::log::ReadableLogSegment>::operator*() const
Line
Count
Source
367
7.48k
  T& operator*() const {
368
7.48k
    ScopedRefPtrCheck(ptr_ != nullptr);
369
7.48k
    return *ptr_;
370
7.48k
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator*() const
Line
Count
Source
367
150k
  T& operator*() const {
368
150k
    ScopedRefPtrCheck(ptr_ != nullptr);
369
150k
    return *ptr_;
370
150k
  }
scoped_refptr<yb::tablet::OperationDriver>::operator*() const
Line
Count
Source
367
39.2M
  T& operator*() const {
368
39.2M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
39.2M
    return *ptr_;
370
39.2M
  }
scoped_refptr<yb::Trace>::operator*() const
Line
Count
Source
367
143M
  T& operator*() const {
368
143M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
143M
    return *ptr_;
370
143M
  }
scoped_refptr<yb::consensus::ConsensusRound>::operator*() const
Line
Count
Source
367
7.94M
  T& operator*() const {
368
7.94M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
7.94M
    return *ptr_;
370
7.94M
  }
scoped_refptr<yb::master::TabletInfo>::operator*() const
Line
Count
Source
367
95.8M
  T& operator*() const {
368
95.8M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
95.8M
    return *ptr_;
370
95.8M
  }
scoped_refptr<yb::master::TableInfo>::operator*() const
Line
Count
Source
367
335M
  T& operator*() const {
368
335M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
335M
    return *ptr_;
370
335M
  }
scoped_refptr<yb::master::NamespaceInfo>::operator*() const
Line
Count
Source
367
455k
  T& operator*() const {
368
455k
    ScopedRefPtrCheck(ptr_ != nullptr);
369
455k
    return *ptr_;
370
455k
  }
scoped_refptr<yb::client::internal::RemoteTablet>::operator*() const
Line
Count
Source
367
15.5M
  T& operator*() const {
368
15.5M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
15.5M
    return *ptr_;
370
15.5M
  }
scoped_refptr<yb::pggate::PgTableDesc>::operator*() const
Line
Count
Source
367
25.2M
  T& operator*() const {
368
25.2M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
25.2M
    return *ptr_;
370
25.2M
  }
scoped_refptr<yb::pggate::PgTxnManager>::operator*() const
Line
Count
Source
367
20.4M
  T& operator*() const {
368
20.4M
    ScopedRefPtrCheck(ptr_ != nullptr);
369
20.4M
    return *ptr_;
370
20.4M
  }
scoped_refptr<yb::ExternalTabletServer>::operator*() const
Line
Count
Source
367
15.9k
  T& operator*() const {
368
15.9k
    ScopedRefPtrCheck(ptr_ != nullptr);
369
15.9k
    return *ptr_;
370
15.9k
  }
371
372
604M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
604M
    if (p)
375
484M
      p->AddRef();
376
604M
    T* old_ptr = ptr_;
377
604M
    ptr_ = p;
378
604M
    if (old_ptr)
379
150M
      old_ptr->Release();
380
604M
    return *this;
381
604M
  }
scoped_refptr<yb::internal::BindStateBase>::operator=(yb::internal::BindStateBase*)
Line
Count
Source
372
44.1M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
44.1M
    if (p)
375
34.1M
      p->AddRef();
376
44.1M
    T* old_ptr = ptr_;
377
44.1M
    ptr_ = p;
378
44.1M
    if (old_ptr)
379
9.96M
      old_ptr->Release();
380
44.1M
    return *this;
381
44.1M
  }
scoped_refptr<yb::client::internal::RemoteTablet>::operator=(yb::client::internal::RemoteTablet*)
Line
Count
Source
372
26.7M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
26.7M
    if (p)
375
26.7M
      p->AddRef();
376
26.7M
    T* old_ptr = ptr_;
377
26.7M
    ptr_ = p;
378
26.7M
    if (old_ptr)
379
84.6k
      old_ptr->Release();
380
26.7M
    return *this;
381
26.7M
  }
scoped_refptr<yb::redisserver::BatchContext>::operator=(yb::redisserver::BatchContext*)
Line
Count
Source
372
5.61M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
5.61M
    if (p)
375
0
      p->AddRef();
376
5.61M
    T* old_ptr = ptr_;
377
5.61M
    ptr_ = p;
378
5.61M
    if (old_ptr)
379
5.61M
      old_ptr->Release();
380
5.61M
    return *this;
381
5.61M
  }
scoped_refptr<yb::Histogram>::operator=(yb::Histogram*)
Line
Count
Source
372
96.3M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
96.3M
    if (p)
375
96.3M
      p->AddRef();
376
96.3M
    T* old_ptr = ptr_;
377
96.3M
    ptr_ = p;
378
96.3M
    if (old_ptr)
379
0
      old_ptr->Release();
380
96.3M
    return *this;
381
96.3M
  }
scoped_refptr<yb::Counter>::operator=(yb::Counter*)
Line
Count
Source
372
106M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
106M
    if (p)
375
97.6M
      p->AddRef();
376
106M
    T* old_ptr = ptr_;
377
106M
    ptr_ = p;
378
106M
    if (old_ptr)
379
2
      old_ptr->Release();
380
106M
    return *this;
381
106M
  }
scoped_refptr<yb::Thread>::operator=(yb::Thread*)
Line
Count
Source
372
1.88M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
1.88M
    if (p)
375
1.88M
      p->AddRef();
376
1.88M
    T* old_ptr = ptr_;
377
1.88M
    ptr_ = p;
378
1.88M
    if (old_ptr)
379
622
      old_ptr->Release();
380
1.88M
    return *this;
381
1.88M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator=(yb::tablet::RaftGroupMetadata*)
Line
Count
Source
372
10.7k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
10.7k
    if (p)
375
10.7k
      p->AddRef();
376
10.7k
    T* old_ptr = ptr_;
377
10.7k
    ptr_ = p;
378
10.7k
    if (old_ptr)
379
152
      old_ptr->Release();
380
10.7k
    return *this;
381
10.7k
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::operator=(yb::tserver::RemoteBootstrapSession*)
Line
Count
Source
372
13.3k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
13.3k
    if (p)
375
13.3k
      p->AddRef();
376
13.3k
    T* old_ptr = ptr_;
377
13.3k
    ptr_ = p;
378
13.3k
    if (old_ptr)
379
4
      old_ptr->Release();
380
13.3k
    return *this;
381
13.3k
  }
scoped_refptr<yb::MetricEntity>::operator=(yb::MetricEntity*)
Line
Count
Source
372
372k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
372k
    if (p)
375
371k
      p->AddRef();
376
372k
    T* old_ptr = ptr_;
377
372k
    ptr_ = p;
378
372k
    if (old_ptr)
379
1
      old_ptr->Release();
380
372k
    return *this;
381
372k
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::operator=(yb::tserver::TransitionInProgressDeleter*)
Line
Count
Source
372
218k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
218k
    if (p)
375
218k
      p->AddRef();
376
218k
    T* old_ptr = ptr_;
377
218k
    ptr_ = p;
378
218k
    if (old_ptr)
379
0
      old_ptr->Release();
380
218k
    return *this;
381
218k
  }
scoped_refptr<yb::log::LogAnchorRegistry>::operator=(yb::log::LogAnchorRegistry*)
Line
Count
Source
372
8
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
8
    if (p)
375
8
      p->AddRef();
376
8
    T* old_ptr = ptr_;
377
8
    ptr_ = p;
378
8
    if (old_ptr)
379
4
      old_ptr->Release();
380
8
    return *this;
381
8
  }
scoped_refptr<yb::log::Log>::operator=(yb::log::Log*)
Line
Count
Source
372
150k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
150k
    if (p)
375
150k
      p->AddRef();
376
150k
    T* old_ptr = ptr_;
377
150k
    ptr_ = p;
378
150k
    if (old_ptr)
379
0
      old_ptr->Release();
380
150k
    return *this;
381
150k
  }
scoped_refptr<yb::consensus::ConsensusRound>::operator=(yb::consensus::ConsensusRound*)
Line
Count
Source
372
14.3M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
14.3M
    if (p)
375
14.3M
      p->AddRef();
376
14.3M
    T* old_ptr = ptr_;
377
14.3M
    ptr_ = p;
378
14.3M
    if (old_ptr)
379
0
      old_ptr->Release();
380
14.3M
    return *this;
381
14.3M
  }
scoped_refptr<yb::debug::ConvertableToTraceFormat>::operator=(yb::debug::ConvertableToTraceFormat*)
Line
Count
Source
372
587k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
587k
    if (p)
375
0
      p->AddRef();
376
587k
    T* old_ptr = ptr_;
377
587k
    ptr_ = p;
378
587k
    if (old_ptr)
379
0
      old_ptr->Release();
380
587k
    return *this;
381
587k
  }
scoped_refptr<yb::server::Clock>::operator=(yb::server::Clock*)
Line
Count
Source
372
26.5k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
26.5k
    if (p)
375
26.5k
      p->AddRef();
376
26.5k
    T* old_ptr = ptr_;
377
26.5k
    ptr_ = p;
378
26.5k
    if (old_ptr)
379
0
      old_ptr->Release();
380
26.5k
    return *this;
381
26.5k
  }
scoped_refptr<yb::master::SysConfigInfo>::operator=(yb::master::SysConfigInfo*)
Line
Count
Source
372
18.7k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
18.7k
    if (p)
375
11.2k
      p->AddRef();
376
18.7k
    T* old_ptr = ptr_;
377
18.7k
    ptr_ = p;
378
18.7k
    if (old_ptr)
379
2.28k
      old_ptr->Release();
380
18.7k
    return *this;
381
18.7k
  }
scoped_refptr<yb::master::TableInfo>::operator=(yb::master::TableInfo*)
Line
Count
Source
372
73.2M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
73.2M
    if (p)
375
73.2M
      p->AddRef();
376
73.2M
    T* old_ptr = ptr_;
377
73.2M
    ptr_ = p;
378
73.2M
    if (old_ptr)
379
72.5M
      old_ptr->Release();
380
73.2M
    return *this;
381
73.2M
  }
scoped_refptr<yb::master::TabletInfo>::operator=(yb::master::TabletInfo*)
Line
Count
Source
372
32.3k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
32.3k
    if (p)
375
32.3k
      p->AddRef();
376
32.3k
    T* old_ptr = ptr_;
377
32.3k
    ptr_ = p;
378
32.3k
    if (old_ptr)
379
0
      old_ptr->Release();
380
32.3k
    return *this;
381
32.3k
  }
scoped_refptr<yb::master::NamespaceInfo>::operator=(yb::master::NamespaceInfo*)
Line
Count
Source
372
40.2k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
40.2k
    if (p)
375
40.2k
      p->AddRef();
376
40.2k
    T* old_ptr = ptr_;
377
40.2k
    ptr_ = p;
378
40.2k
    if (old_ptr)
379
1
      old_ptr->Release();
380
40.2k
    return *this;
381
40.2k
  }
scoped_refptr<yb::master::TablegroupInfo>::operator=(yb::master::TablegroupInfo*)
Line
Count
Source
372
57
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
57
    if (p)
375
57
      p->AddRef();
376
57
    T* old_ptr = ptr_;
377
57
    ptr_ = p;
378
57
    if (old_ptr)
379
0
      old_ptr->Release();
380
57
    return *this;
381
57
  }
scoped_refptr<yb::master::RedisConfigInfo>::operator=(yb::master::RedisConfigInfo*)
Line
Count
Source
372
364
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
364
    if (p)
375
364
      p->AddRef();
376
364
    T* old_ptr = ptr_;
377
364
    ptr_ = p;
378
364
    if (old_ptr)
379
0
      old_ptr->Release();
380
364
    return *this;
381
364
  }
scoped_refptr<yb::master::UDTypeInfo>::operator=(yb::master::UDTypeInfo*)
Line
Count
Source
372
138
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
138
    if (p)
375
138
      p->AddRef();
376
138
    T* old_ptr = ptr_;
377
138
    ptr_ = p;
378
138
    if (old_ptr)
379
0
      old_ptr->Release();
380
138
    return *this;
381
138
  }
scoped_refptr<yb::master::RoleInfo>::operator=(yb::master::RoleInfo*)
Line
Count
Source
372
2.90k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
2.90k
    if (p)
375
2.90k
      p->AddRef();
376
2.90k
    T* old_ptr = ptr_;
377
2.90k
    ptr_ = p;
378
2.90k
    if (old_ptr)
379
0
      old_ptr->Release();
380
2.90k
    return *this;
381
2.90k
  }
scoped_refptr<yb::master::CDCStreamInfo>::operator=(yb::master::CDCStreamInfo*)
Line
Count
Source
372
310
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
310
    if (p)
375
310
      p->AddRef();
376
310
    T* old_ptr = ptr_;
377
310
    ptr_ = p;
378
310
    if (old_ptr)
379
0
      old_ptr->Release();
380
310
    return *this;
381
310
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::operator=(yb::master::UniverseReplicationInfo*)
Line
Count
Source
372
4
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
4
    if (p)
375
4
      p->AddRef();
376
4
    T* old_ptr = ptr_;
377
4
    ptr_ = p;
378
4
    if (old_ptr)
379
0
      old_ptr->Release();
380
4
    return *this;
381
4
  }
scoped_refptr<yb::client::internal::MetaCache>::operator=(yb::client::internal::MetaCache*)
Line
Count
Source
372
30.7k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
30.7k
    if (p)
375
30.7k
      p->AddRef();
376
30.7k
    T* old_ptr = ptr_;
377
30.7k
    ptr_ = p;
378
30.7k
    if (old_ptr)
379
0
      old_ptr->Release();
380
30.7k
    return *this;
381
30.7k
  }
scoped_refptr<yb::pggate::PgTableDesc>::operator=(yb::pggate::PgTableDesc*)
Line
Count
Source
372
11.2M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
11.2M
    if (p)
375
11.2M
      p->AddRef();
376
11.2M
    T* old_ptr = ptr_;
377
11.2M
    ptr_ = p;
378
11.2M
    if (old_ptr)
379
9
      old_ptr->Release();
380
11.2M
    return *this;
381
11.2M
  }
scoped_refptr<yb::pggate::PgTxnManager>::operator=(yb::pggate::PgTxnManager*)
Line
Count
Source
372
6.07k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
6.07k
    if (p)
375
0
      p->AddRef();
376
6.07k
    T* old_ptr = ptr_;
377
6.07k
    ptr_ = p;
378
6.07k
    if (old_ptr)
379
6.06k
      old_ptr->Release();
380
6.07k
    return *this;
381
6.07k
  }
scoped_refptr<yb::ExternalTabletServer>::operator=(yb::ExternalTabletServer*)
Line
Count
Source
372
101k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
101k
    if (p)
375
101k
      p->AddRef();
376
101k
    T* old_ptr = ptr_;
377
101k
    ptr_ = p;
378
101k
    if (old_ptr)
379
101k
      old_ptr->Release();
380
101k
    return *this;
381
101k
  }
scoped_refptr<yb::rpc::ServicePool>::operator=(yb::rpc::ServicePool*)
Line
Count
Source
372
82
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
82
    if (p)
375
82
      p->AddRef();
376
82
    T* old_ptr = ptr_;
377
82
    ptr_ = p;
378
82
    if (old_ptr)
379
0
      old_ptr->Release();
380
82
    return *this;
381
82
  }
scoped_refptr<yb::RefCountedString>::operator=(yb::RefCountedString*)
Line
Count
Source
372
13
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
13
    if (p)
375
13
      p->AddRef();
376
13
    T* old_ptr = ptr_;
377
13
    ptr_ = p;
378
13
    if (old_ptr)
379
0
      old_ptr->Release();
380
13
    return *this;
381
13
  }
Unexecuted instantiation: scoped_refptr<yb::FailureDetector>::operator=(yb::FailureDetector*)
Unexecuted instantiation: scoped_refptr<yb::MillisLag>::operator=(yb::MillisLag*)
scoped_refptr<yb::AtomicMillisLag>::operator=(yb::AtomicMillisLag*)
Line
Count
Source
372
175k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
175k
    if (p)
375
175k
      p->AddRef();
376
175k
    T* old_ptr = ptr_;
377
175k
    ptr_ = p;
378
175k
    if (old_ptr)
379
0
      old_ptr->Release();
380
175k
    return *this;
381
175k
  }
scoped_refptr<yb::Trace>::operator=(yb::Trace*)
Line
Count
Source
372
156M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
156M
    if (p)
375
62.0M
      p->AddRef();
376
156M
    T* old_ptr = ptr_;
377
156M
    ptr_ = p;
378
156M
    if (old_ptr)
379
62.0M
      old_ptr->Release();
380
156M
    return *this;
381
156M
  }
scoped_refptr<yb::log::LogIndex>::operator=(yb::log::LogIndex*)
Line
Count
Source
372
227k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
227k
    if (p)
375
151k
      p->AddRef();
376
227k
    T* old_ptr = ptr_;
377
227k
    ptr_ = p;
378
227k
    if (old_ptr)
379
75.7k
      old_ptr->Release();
380
227k
    return *this;
381
227k
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::operator=(yb::log::LogIndex::IndexChunk*)
Line
Count
Source
372
65.6M
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
65.6M
    if (p)
375
65.6M
      p->AddRef();
376
65.6M
    T* old_ptr = ptr_;
377
65.6M
    ptr_ = p;
378
65.6M
    if (old_ptr)
379
0
      old_ptr->Release();
380
65.6M
    return *this;
381
65.6M
  }
scoped_refptr<yb::log::ReadableLogSegment>::operator=(yb::log::ReadableLogSegment*)
Line
Count
Source
372
85.4k
  scoped_refptr<T>& operator=(T* p) {
373
    // AddRef first so that self assignment should work
374
85.4k
    if (p)
375
85.4k
      p->AddRef();
376
85.4k
    T* old_ptr = ptr_;
377
85.4k
    ptr_ = p;
378
85.4k
    if (old_ptr)
379
85.3k
      old_ptr->Release();
380
85.4k
    return *this;
381
85.4k
  }
382
383
414M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
414M
    return *this = r.ptr_;
385
414M
  }
scoped_refptr<yb::internal::BindStateBase>::operator=(scoped_refptr<yb::internal::BindStateBase> const&)
Line
Count
Source
383
34.1M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
34.1M
    return *this = r.ptr_;
385
34.1M
  }
scoped_refptr<yb::client::internal::RemoteTablet>::operator=(scoped_refptr<yb::client::internal::RemoteTablet> const&)
Line
Count
Source
383
26.6M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
26.6M
    return *this = r.ptr_;
385
26.6M
  }
scoped_refptr<yb::Histogram>::operator=(scoped_refptr<yb::Histogram> const&)
Line
Count
Source
383
92.5M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
92.5M
    return *this = r.ptr_;
385
92.5M
  }
scoped_refptr<yb::Counter>::operator=(scoped_refptr<yb::Counter> const&)
Line
Count
Source
383
94.7M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
94.7M
    return *this = r.ptr_;
385
94.7M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator=(scoped_refptr<yb::tablet::RaftGroupMetadata> const&)
Line
Count
Source
383
10.7k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
10.7k
    return *this = r.ptr_;
385
10.7k
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::operator=(scoped_refptr<yb::tserver::RemoteBootstrapSession> const&)
Line
Count
Source
383
11.3k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
11.3k
    return *this = r.ptr_;
385
11.3k
  }
scoped_refptr<yb::MetricEntity>::operator=(scoped_refptr<yb::MetricEntity> const&)
Line
Count
Source
383
149k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
149k
    return *this = r.ptr_;
385
149k
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::operator=(scoped_refptr<yb::tserver::TransitionInProgressDeleter> const&)
Line
Count
Source
383
136
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
136
    return *this = r.ptr_;
385
136
  }
scoped_refptr<yb::log::Log>::operator=(scoped_refptr<yb::log::Log> const&)
Line
Count
Source
383
150k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
150k
    return *this = r.ptr_;
385
150k
  }
scoped_refptr<yb::consensus::ConsensusRound>::operator=(scoped_refptr<yb::consensus::ConsensusRound> const&)
Line
Count
Source
383
14.3M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
14.3M
    return *this = r.ptr_;
385
14.3M
  }
Unexecuted instantiation: scoped_refptr<yb::debug::ConvertableToTraceFormat>::operator=(scoped_refptr<yb::debug::ConvertableToTraceFormat> const&)
scoped_refptr<yb::server::Clock>::operator=(scoped_refptr<yb::server::Clock> const&)
Line
Count
Source
383
6.11k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
6.11k
    return *this = r.ptr_;
385
6.11k
  }
scoped_refptr<yb::master::TableInfo>::operator=(scoped_refptr<yb::master::TableInfo> const&)
Line
Count
Source
383
73.2M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
73.2M
    return *this = r.ptr_;
385
73.2M
  }
scoped_refptr<yb::master::TabletInfo>::operator=(scoped_refptr<yb::master::TabletInfo> const&)
Line
Count
Source
383
32.3k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
32.3k
    return *this = r.ptr_;
385
32.3k
  }
scoped_refptr<yb::master::NamespaceInfo>::operator=(scoped_refptr<yb::master::NamespaceInfo> const&)
Line
Count
Source
383
31.1k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
31.1k
    return *this = r.ptr_;
385
31.1k
  }
scoped_refptr<yb::master::RedisConfigInfo>::operator=(scoped_refptr<yb::master::RedisConfigInfo> const&)
Line
Count
Source
383
182
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
182
    return *this = r.ptr_;
385
182
  }
scoped_refptr<yb::master::UDTypeInfo>::operator=(scoped_refptr<yb::master::UDTypeInfo> const&)
Line
Count
Source
383
92
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
92
    return *this = r.ptr_;
385
92
  }
scoped_refptr<yb::master::RoleInfo>::operator=(scoped_refptr<yb::master::RoleInfo> const&)
Line
Count
Source
383
2.90k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
2.90k
    return *this = r.ptr_;
385
2.90k
  }
scoped_refptr<yb::master::CDCStreamInfo>::operator=(scoped_refptr<yb::master::CDCStreamInfo> const&)
Line
Count
Source
383
310
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
310
    return *this = r.ptr_;
385
310
  }
scoped_refptr<yb::master::UniverseReplicationInfo>::operator=(scoped_refptr<yb::master::UniverseReplicationInfo> const&)
Line
Count
Source
383
2
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
2
    return *this = r.ptr_;
385
2
  }
scoped_refptr<yb::pggate::PgTableDesc>::operator=(scoped_refptr<yb::pggate::PgTableDesc> const&)
Line
Count
Source
383
11.2M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
11.2M
    return *this = r.ptr_;
385
11.2M
  }
scoped_refptr<yb::ExternalTabletServer>::operator=(scoped_refptr<yb::ExternalTabletServer> const&)
Line
Count
Source
383
101k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
101k
    return *this = r.ptr_;
385
101k
  }
scoped_refptr<yb::rpc::ServicePool>::operator=(scoped_refptr<yb::rpc::ServicePool> const&)
Line
Count
Source
383
82
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
82
    return *this = r.ptr_;
385
82
  }
Unexecuted instantiation: scoped_refptr<yb::RefCountedString>::operator=(scoped_refptr<yb::RefCountedString> const&)
Unexecuted instantiation: scoped_refptr<yb::FailureDetector>::operator=(scoped_refptr<yb::FailureDetector> const&)
scoped_refptr<yb::Thread>::operator=(scoped_refptr<yb::Thread> const&)
Line
Count
Source
383
1.88M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
1.88M
    return *this = r.ptr_;
385
1.88M
  }
Unexecuted instantiation: scoped_refptr<yb::Trace>::operator=(scoped_refptr<yb::Trace> const&)
scoped_refptr<yb::log::LogIndex>::operator=(scoped_refptr<yb::log::LogIndex> const&)
Line
Count
Source
383
165
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
165
    return *this = r.ptr_;
385
165
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::operator=(scoped_refptr<yb::log::LogIndex::IndexChunk> const&)
Line
Count
Source
383
65.6M
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
65.6M
    return *this = r.ptr_;
385
65.6M
  }
scoped_refptr<yb::log::ReadableLogSegment>::operator=(scoped_refptr<yb::log::ReadableLogSegment> const&)
Line
Count
Source
383
85.3k
  scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
384
85.3k
    return *this = r.ptr_;
385
85.3k
  }
386
387
  template <typename U>
388
  scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
389
    return *this = r.get();
390
  }
391
392
88.8M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
88.8M
    scoped_refptr<T>(r).swap(*this);
394
88.8M
    return *this;
395
88.8M
  }
Unexecuted instantiation: scoped_refptr<yb::server::Clock>::operator=(scoped_refptr<yb::server::Clock>&&)
scoped_refptr<yb::redisserver::BatchContext>::operator=(scoped_refptr<yb::redisserver::BatchContext>&&)
Line
Count
Source
392
208k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
208k
    scoped_refptr<T>(r).swap(*this);
394
208k
    return *this;
395
208k
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::operator=(scoped_refptr<yb::AtomicGauge<unsigned long long> >&&)
Line
Count
Source
392
1.80M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
1.80M
    scoped_refptr<T>(r).swap(*this);
394
1.80M
    return *this;
395
1.80M
  }
scoped_refptr<yb::Histogram>::operator=(scoped_refptr<yb::Histogram>&&)
Line
Count
Source
392
4.11M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
4.11M
    scoped_refptr<T>(r).swap(*this);
394
4.11M
    return *this;
395
4.11M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::operator=(scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>&&)
Line
Count
Source
392
115
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
115
    scoped_refptr<T>(r).swap(*this);
394
115
    return *this;
395
115
  }
scoped_refptr<yb::Counter>::operator=(scoped_refptr<yb::Counter>&&)
Line
Count
Source
392
15.5M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
15.5M
    scoped_refptr<T>(r).swap(*this);
394
15.5M
    return *this;
395
15.5M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::operator=(scoped_refptr<yb::tablet::RaftGroupMetadata>&&)
Line
Count
Source
392
2.41k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
2.41k
    scoped_refptr<T>(r).swap(*this);
394
2.41k
    return *this;
395
2.41k
  }
Unexecuted instantiation: scoped_refptr<yb::tserver::TransitionInProgressDeleter>::operator=(scoped_refptr<yb::tserver::TransitionInProgressDeleter>&&)
scoped_refptr<yb::MetricEntity>::operator=(scoped_refptr<yb::MetricEntity>&&)
Line
Count
Source
392
300k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
300k
    scoped_refptr<T>(r).swap(*this);
394
300k
    return *this;
395
300k
  }
scoped_refptr<yb::AtomicGauge<long long> >::operator=(scoped_refptr<yb::AtomicGauge<long long> >&&)
Line
Count
Source
392
3.00M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
3.00M
    scoped_refptr<T>(r).swap(*this);
394
3.00M
    return *this;
395
3.00M
  }
scoped_refptr<yb::consensus::LeaderElection>::operator=(scoped_refptr<yb::consensus::LeaderElection>&&)
Line
Count
Source
392
737k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
737k
    scoped_refptr<T>(r).swap(*this);
394
737k
    return *this;
395
737k
  }
scoped_refptr<yb::consensus::ConsensusRound>::operator=(scoped_refptr<yb::consensus::ConsensusRound>&&)
Line
Count
Source
392
172
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
172
    scoped_refptr<T>(r).swap(*this);
394
172
    return *this;
395
172
  }
scoped_refptr<yb::AtomicMillisLag>::operator=(scoped_refptr<yb::AtomicMillisLag>&&)
Line
Count
Source
392
25.8k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
25.8k
    scoped_refptr<T>(r).swap(*this);
394
25.8k
    return *this;
395
25.8k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::operator=(scoped_refptr<yb::AtomicGauge<unsigned int> >&&)
Line
Count
Source
392
20.2k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
20.2k
    scoped_refptr<T>(r).swap(*this);
394
20.2k
    return *this;
395
20.2k
  }
scoped_refptr<yb::master::TableInfo>::operator=(scoped_refptr<yb::master::TableInfo>&&)
Line
Count
Source
392
1.01M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
1.01M
    scoped_refptr<T>(r).swap(*this);
394
1.01M
    return *this;
395
1.01M
  }
scoped_refptr<yb::master::NamespaceInfo>::operator=(scoped_refptr<yb::master::NamespaceInfo>&&)
Line
Count
Source
392
6.29k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
6.29k
    scoped_refptr<T>(r).swap(*this);
394
6.29k
    return *this;
395
6.29k
  }
scoped_refptr<yb::master::TabletInfo>::operator=(scoped_refptr<yb::master::TabletInfo>&&)
Line
Count
Source
392
2.24M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
2.24M
    scoped_refptr<T>(r).swap(*this);
394
2.24M
    return *this;
395
2.24M
  }
scoped_refptr<yb::master::UDTypeInfo>::operator=(scoped_refptr<yb::master::UDTypeInfo>&&)
Line
Count
Source
392
157
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
157
    scoped_refptr<T>(r).swap(*this);
394
157
    return *this;
395
157
  }
scoped_refptr<yb::master::RoleInfo>::operator=(scoped_refptr<yb::master::RoleInfo>&&)
Line
Count
Source
392
3.64k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
3.64k
    scoped_refptr<T>(r).swap(*this);
394
3.64k
    return *this;
395
3.64k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::operator=(scoped_refptr<yb::master::SnapshotInfo>&&)
scoped_refptr<yb::master::CDCStreamInfo>::operator=(scoped_refptr<yb::master::CDCStreamInfo>&&)
Line
Count
Source
392
5.52k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
5.52k
    scoped_refptr<T>(r).swap(*this);
394
5.52k
    return *this;
395
5.52k
  }
Unexecuted instantiation: scoped_refptr<yb::master::UniverseReplicationInfo>::operator=(scoped_refptr<yb::master::UniverseReplicationInfo>&&)
scoped_refptr<yb::client::internal::RemoteTablet>::operator=(scoped_refptr<yb::client::internal::RemoteTablet>&&)
Line
Count
Source
392
50.0M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
50.0M
    scoped_refptr<T>(r).swap(*this);
394
50.0M
    return *this;
395
50.0M
  }
scoped_refptr<yb::pggate::PgTableDesc>::operator=(scoped_refptr<yb::pggate::PgTableDesc>&&)
Line
Count
Source
392
9.71M
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
9.71M
    scoped_refptr<T>(r).swap(*this);
394
9.71M
    return *this;
395
9.71M
  }
scoped_refptr<yb::ExternalMaster>::operator=(scoped_refptr<yb::ExternalMaster>&&)
Line
Count
Source
392
13
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
13
    scoped_refptr<T>(r).swap(*this);
394
13
    return *this;
395
13
  }
scoped_refptr<yb::ExternalTabletServer>::operator=(scoped_refptr<yb::ExternalTabletServer>&&)
Line
Count
Source
392
5.02k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
5.02k
    scoped_refptr<T>(r).swap(*this);
394
5.02k
    return *this;
395
5.02k
  }
scoped_refptr<yb::Thread>::operator=(scoped_refptr<yb::Thread>&&)
Line
Count
Source
392
175
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
175
    scoped_refptr<T>(r).swap(*this);
394
175
    return *this;
395
175
  }
scoped_refptr<yb::log::ReadableLogSegment>::operator=(scoped_refptr<yb::log::ReadableLogSegment>&&)
Line
Count
Source
392
17.3k
  scoped_refptr<T>& operator=(scoped_refptr<T>&& r) {
393
17.3k
    scoped_refptr<T>(r).swap(*this);
394
17.3k
    return *this;
395
17.3k
  }
396
397
  template <typename U>
398
  scoped_refptr<T>& operator=(scoped_refptr<U>&& r) {
399
    scoped_refptr<T>(r).swap(*this);
400
    return *this;
401
  }
402
403
89.2M
  void swap(T** pp) {
404
89.2M
    T* p = ptr_;
405
89.2M
    ptr_ = *pp;
406
89.2M
    *pp = p;
407
89.2M
  }
Unexecuted instantiation: scoped_refptr<yb::server::Clock>::swap(yb::server::Clock**)
scoped_refptr<yb::redisserver::BatchContext>::swap(yb::redisserver::BatchContext**)
Line
Count
Source
403
208k
  void swap(T** pp) {
404
208k
    T* p = ptr_;
405
208k
    ptr_ = *pp;
406
208k
    *pp = p;
407
208k
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::swap(yb::AtomicGauge<unsigned long long>**)
Line
Count
Source
403
1.80M
  void swap(T** pp) {
404
1.80M
    T* p = ptr_;
405
1.80M
    ptr_ = *pp;
406
1.80M
    *pp = p;
407
1.80M
  }
scoped_refptr<yb::Histogram>::swap(yb::Histogram**)
Line
Count
Source
403
4.11M
  void swap(T** pp) {
404
4.11M
    T* p = ptr_;
405
4.11M
    ptr_ = *pp;
406
4.11M
    *pp = p;
407
4.11M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::swap(yb::redisserver::(anonymous namespace)::BatchContextImpl**)
Line
Count
Source
403
115
  void swap(T** pp) {
404
115
    T* p = ptr_;
405
115
    ptr_ = *pp;
406
115
    *pp = p;
407
115
  }
scoped_refptr<yb::Counter>::swap(yb::Counter**)
Line
Count
Source
403
15.5M
  void swap(T** pp) {
404
15.5M
    T* p = ptr_;
405
15.5M
    ptr_ = *pp;
406
15.5M
    *pp = p;
407
15.5M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::swap(yb::tablet::RaftGroupMetadata**)
Line
Count
Source
403
2.63k
  void swap(T** pp) {
404
2.63k
    T* p = ptr_;
405
2.63k
    ptr_ = *pp;
406
2.63k
    *pp = p;
407
2.63k
  }
Unexecuted instantiation: scoped_refptr<yb::tserver::TransitionInProgressDeleter>::swap(yb::tserver::TransitionInProgressDeleter**)
scoped_refptr<yb::MetricEntity>::swap(yb::MetricEntity**)
Line
Count
Source
403
300k
  void swap(T** pp) {
404
300k
    T* p = ptr_;
405
300k
    ptr_ = *pp;
406
300k
    *pp = p;
407
300k
  }
scoped_refptr<yb::log::Log>::swap(yb::log::Log**)
Line
Count
Source
403
301k
  void swap(T** pp) {
404
301k
    T* p = ptr_;
405
301k
    ptr_ = *pp;
406
301k
    *pp = p;
407
301k
  }
scoped_refptr<yb::AtomicGauge<long long> >::swap(yb::AtomicGauge<long long>**)
Line
Count
Source
403
3.00M
  void swap(T** pp) {
404
3.00M
    T* p = ptr_;
405
3.00M
    ptr_ = *pp;
406
3.00M
    *pp = p;
407
3.00M
  }
scoped_refptr<yb::consensus::LeaderElection>::swap(yb::consensus::LeaderElection**)
Line
Count
Source
403
737k
  void swap(T** pp) {
404
737k
    T* p = ptr_;
405
737k
    ptr_ = *pp;
406
737k
    *pp = p;
407
737k
  }
scoped_refptr<yb::consensus::ConsensusRound>::swap(yb::consensus::ConsensusRound**)
Line
Count
Source
403
172
  void swap(T** pp) {
404
172
    T* p = ptr_;
405
172
    ptr_ = *pp;
406
172
    *pp = p;
407
172
  }
scoped_refptr<yb::AtomicMillisLag>::swap(yb::AtomicMillisLag**)
Line
Count
Source
403
25.8k
  void swap(T** pp) {
404
25.8k
    T* p = ptr_;
405
25.8k
    ptr_ = *pp;
406
25.8k
    *pp = p;
407
25.8k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::swap(yb::AtomicGauge<unsigned int>**)
Line
Count
Source
403
20.2k
  void swap(T** pp) {
404
20.2k
    T* p = ptr_;
405
20.2k
    ptr_ = *pp;
406
20.2k
    *pp = p;
407
20.2k
  }
scoped_refptr<yb::master::TableInfo>::swap(yb::master::TableInfo**)
Line
Count
Source
403
1.01M
  void swap(T** pp) {
404
1.01M
    T* p = ptr_;
405
1.01M
    ptr_ = *pp;
406
1.01M
    *pp = p;
407
1.01M
  }
scoped_refptr<yb::master::NamespaceInfo>::swap(yb::master::NamespaceInfo**)
Line
Count
Source
403
6.29k
  void swap(T** pp) {
404
6.29k
    T* p = ptr_;
405
6.29k
    ptr_ = *pp;
406
6.29k
    *pp = p;
407
6.29k
  }
scoped_refptr<yb::master::TabletInfo>::swap(yb::master::TabletInfo**)
Line
Count
Source
403
2.24M
  void swap(T** pp) {
404
2.24M
    T* p = ptr_;
405
2.24M
    ptr_ = *pp;
406
2.24M
    *pp = p;
407
2.24M
  }
scoped_refptr<yb::master::UDTypeInfo>::swap(yb::master::UDTypeInfo**)
Line
Count
Source
403
157
  void swap(T** pp) {
404
157
    T* p = ptr_;
405
157
    ptr_ = *pp;
406
157
    *pp = p;
407
157
  }
scoped_refptr<yb::master::RoleInfo>::swap(yb::master::RoleInfo**)
Line
Count
Source
403
3.64k
  void swap(T** pp) {
404
3.64k
    T* p = ptr_;
405
3.64k
    ptr_ = *pp;
406
3.64k
    *pp = p;
407
3.64k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::swap(yb::master::SnapshotInfo**)
scoped_refptr<yb::master::CDCStreamInfo>::swap(yb::master::CDCStreamInfo**)
Line
Count
Source
403
5.52k
  void swap(T** pp) {
404
5.52k
    T* p = ptr_;
405
5.52k
    ptr_ = *pp;
406
5.52k
    *pp = p;
407
5.52k
  }
Unexecuted instantiation: scoped_refptr<yb::master::UniverseReplicationInfo>::swap(yb::master::UniverseReplicationInfo**)
scoped_refptr<yb::client::internal::RemoteTablet>::swap(yb::client::internal::RemoteTablet**)
Line
Count
Source
403
50.0M
  void swap(T** pp) {
404
50.0M
    T* p = ptr_;
405
50.0M
    ptr_ = *pp;
406
50.0M
    *pp = p;
407
50.0M
  }
scoped_refptr<yb::pggate::PgSession>::swap(yb::pggate::PgSession**)
Line
Count
Source
403
6.09k
  void swap(T** pp) {
404
6.09k
    T* p = ptr_;
405
6.09k
    ptr_ = *pp;
406
6.09k
    *pp = p;
407
6.09k
  }
scoped_refptr<yb::pggate::PgTableDesc>::swap(yb::pggate::PgTableDesc**)
Line
Count
Source
403
9.71M
  void swap(T** pp) {
404
9.71M
    T* p = ptr_;
405
9.71M
    ptr_ = *pp;
406
9.71M
    *pp = p;
407
9.71M
  }
scoped_refptr<yb::ExternalMaster>::swap(yb::ExternalMaster**)
Line
Count
Source
403
13
  void swap(T** pp) {
404
13
    T* p = ptr_;
405
13
    ptr_ = *pp;
406
13
    *pp = p;
407
13
  }
scoped_refptr<yb::ExternalTabletServer>::swap(yb::ExternalTabletServer**)
Line
Count
Source
403
5.02k
  void swap(T** pp) {
404
5.02k
    T* p = ptr_;
405
5.02k
    ptr_ = *pp;
406
5.02k
    *pp = p;
407
5.02k
  }
scoped_refptr<yb::Thread>::swap(yb::Thread**)
Line
Count
Source
403
175
  void swap(T** pp) {
404
175
    T* p = ptr_;
405
175
    ptr_ = *pp;
406
175
    *pp = p;
407
175
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::swap(yb::log::LogIndex::IndexChunk**)
Line
Count
Source
403
150k
  void swap(T** pp) {
404
150k
    T* p = ptr_;
405
150k
    ptr_ = *pp;
406
150k
    *pp = p;
407
150k
  }
scoped_refptr<yb::log::ReadableLogSegment>::swap(yb::log::ReadableLogSegment**)
Line
Count
Source
403
17.3k
  void swap(T** pp) {
404
17.3k
    T* p = ptr_;
405
17.3k
    ptr_ = *pp;
406
17.3k
    *pp = p;
407
17.3k
  }
408
409
89.2M
  void swap(scoped_refptr<T>& r) {
410
89.2M
    swap(&r.ptr_);
411
89.2M
  }
Unexecuted instantiation: scoped_refptr<yb::server::Clock>::swap(scoped_refptr<yb::server::Clock>&)
scoped_refptr<yb::redisserver::BatchContext>::swap(scoped_refptr<yb::redisserver::BatchContext>&)
Line
Count
Source
409
208k
  void swap(scoped_refptr<T>& r) {
410
208k
    swap(&r.ptr_);
411
208k
  }
scoped_refptr<yb::AtomicGauge<unsigned long long> >::swap(scoped_refptr<yb::AtomicGauge<unsigned long long> >&)
Line
Count
Source
409
1.80M
  void swap(scoped_refptr<T>& r) {
410
1.80M
    swap(&r.ptr_);
411
1.80M
  }
scoped_refptr<yb::Histogram>::swap(scoped_refptr<yb::Histogram>&)
Line
Count
Source
409
4.11M
  void swap(scoped_refptr<T>& r) {
410
4.11M
    swap(&r.ptr_);
411
4.11M
  }
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>::swap(scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl>&)
Line
Count
Source
409
115
  void swap(scoped_refptr<T>& r) {
410
115
    swap(&r.ptr_);
411
115
  }
scoped_refptr<yb::Counter>::swap(scoped_refptr<yb::Counter>&)
Line
Count
Source
409
15.5M
  void swap(scoped_refptr<T>& r) {
410
15.5M
    swap(&r.ptr_);
411
15.5M
  }
scoped_refptr<yb::tablet::RaftGroupMetadata>::swap(scoped_refptr<yb::tablet::RaftGroupMetadata>&)
Line
Count
Source
409
2.63k
  void swap(scoped_refptr<T>& r) {
410
2.63k
    swap(&r.ptr_);
411
2.63k
  }
Unexecuted instantiation: scoped_refptr<yb::tserver::TransitionInProgressDeleter>::swap(scoped_refptr<yb::tserver::TransitionInProgressDeleter>&)
scoped_refptr<yb::MetricEntity>::swap(scoped_refptr<yb::MetricEntity>&)
Line
Count
Source
409
300k
  void swap(scoped_refptr<T>& r) {
410
300k
    swap(&r.ptr_);
411
300k
  }
scoped_refptr<yb::log::Log>::swap(scoped_refptr<yb::log::Log>&)
Line
Count
Source
409
301k
  void swap(scoped_refptr<T>& r) {
410
301k
    swap(&r.ptr_);
411
301k
  }
scoped_refptr<yb::AtomicGauge<long long> >::swap(scoped_refptr<yb::AtomicGauge<long long> >&)
Line
Count
Source
409
3.00M
  void swap(scoped_refptr<T>& r) {
410
3.00M
    swap(&r.ptr_);
411
3.00M
  }
scoped_refptr<yb::consensus::LeaderElection>::swap(scoped_refptr<yb::consensus::LeaderElection>&)
Line
Count
Source
409
737k
  void swap(scoped_refptr<T>& r) {
410
737k
    swap(&r.ptr_);
411
737k
  }
scoped_refptr<yb::consensus::ConsensusRound>::swap(scoped_refptr<yb::consensus::ConsensusRound>&)
Line
Count
Source
409
172
  void swap(scoped_refptr<T>& r) {
410
172
    swap(&r.ptr_);
411
172
  }
scoped_refptr<yb::AtomicMillisLag>::swap(scoped_refptr<yb::AtomicMillisLag>&)
Line
Count
Source
409
25.8k
  void swap(scoped_refptr<T>& r) {
410
25.8k
    swap(&r.ptr_);
411
25.8k
  }
scoped_refptr<yb::AtomicGauge<unsigned int> >::swap(scoped_refptr<yb::AtomicGauge<unsigned int> >&)
Line
Count
Source
409
20.2k
  void swap(scoped_refptr<T>& r) {
410
20.2k
    swap(&r.ptr_);
411
20.2k
  }
scoped_refptr<yb::master::TableInfo>::swap(scoped_refptr<yb::master::TableInfo>&)
Line
Count
Source
409
1.01M
  void swap(scoped_refptr<T>& r) {
410
1.01M
    swap(&r.ptr_);
411
1.01M
  }
scoped_refptr<yb::master::NamespaceInfo>::swap(scoped_refptr<yb::master::NamespaceInfo>&)
Line
Count
Source
409
6.29k
  void swap(scoped_refptr<T>& r) {
410
6.29k
    swap(&r.ptr_);
411
6.29k
  }
scoped_refptr<yb::master::TabletInfo>::swap(scoped_refptr<yb::master::TabletInfo>&)
Line
Count
Source
409
2.24M
  void swap(scoped_refptr<T>& r) {
410
2.24M
    swap(&r.ptr_);
411
2.24M
  }
scoped_refptr<yb::master::UDTypeInfo>::swap(scoped_refptr<yb::master::UDTypeInfo>&)
Line
Count
Source
409
157
  void swap(scoped_refptr<T>& r) {
410
157
    swap(&r.ptr_);
411
157
  }
scoped_refptr<yb::master::RoleInfo>::swap(scoped_refptr<yb::master::RoleInfo>&)
Line
Count
Source
409
3.64k
  void swap(scoped_refptr<T>& r) {
410
3.64k
    swap(&r.ptr_);
411
3.64k
  }
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo>::swap(scoped_refptr<yb::master::SnapshotInfo>&)
scoped_refptr<yb::master::CDCStreamInfo>::swap(scoped_refptr<yb::master::CDCStreamInfo>&)
Line
Count
Source
409
5.52k
  void swap(scoped_refptr<T>& r) {
410
5.52k
    swap(&r.ptr_);
411
5.52k
  }
Unexecuted instantiation: scoped_refptr<yb::master::UniverseReplicationInfo>::swap(scoped_refptr<yb::master::UniverseReplicationInfo>&)
scoped_refptr<yb::client::internal::RemoteTablet>::swap(scoped_refptr<yb::client::internal::RemoteTablet>&)
Line
Count
Source
409
50.0M
  void swap(scoped_refptr<T>& r) {
410
50.0M
    swap(&r.ptr_);
411
50.0M
  }
scoped_refptr<yb::pggate::PgSession>::swap(scoped_refptr<yb::pggate::PgSession>&)
Line
Count
Source
409
6.08k
  void swap(scoped_refptr<T>& r) {
410
6.08k
    swap(&r.ptr_);
411
6.08k
  }
scoped_refptr<yb::pggate::PgTableDesc>::swap(scoped_refptr<yb::pggate::PgTableDesc>&)
Line
Count
Source
409
9.71M
  void swap(scoped_refptr<T>& r) {
410
9.71M
    swap(&r.ptr_);
411
9.71M
  }
scoped_refptr<yb::ExternalMaster>::swap(scoped_refptr<yb::ExternalMaster>&)
Line
Count
Source
409
13
  void swap(scoped_refptr<T>& r) {
410
13
    swap(&r.ptr_);
411
13
  }
scoped_refptr<yb::ExternalTabletServer>::swap(scoped_refptr<yb::ExternalTabletServer>&)
Line
Count
Source
409
5.02k
  void swap(scoped_refptr<T>& r) {
410
5.02k
    swap(&r.ptr_);
411
5.02k
  }
scoped_refptr<yb::Thread>::swap(scoped_refptr<yb::Thread>&)
Line
Count
Source
409
175
  void swap(scoped_refptr<T>& r) {
410
175
    swap(&r.ptr_);
411
175
  }
scoped_refptr<yb::log::LogIndex::IndexChunk>::swap(scoped_refptr<yb::log::LogIndex::IndexChunk>&)
Line
Count
Source
409
150k
  void swap(scoped_refptr<T>& r) {
410
150k
    swap(&r.ptr_);
411
150k
  }
scoped_refptr<yb::log::ReadableLogSegment>::swap(scoped_refptr<yb::log::ReadableLogSegment>&)
Line
Count
Source
409
17.3k
  void swap(scoped_refptr<T>& r) {
410
17.3k
    swap(&r.ptr_);
411
17.3k
  }
412
413
  // Like std::unique_ptr::reset(), drops a reference on the currently held object
414
  // (if any), and adds a reference to the passed-in object (if not NULL).
415
84.5M
  void reset(T* p = NULL) {
416
84.5M
    *this = p;
417
84.5M
  }
scoped_refptr<yb::client::internal::RemoteTablet>::reset(yb::client::internal::RemoteTablet*)
Line
Count
Source
415
9.03k
  void reset(T* p = NULL) {
416
9.03k
    *this = p;
417
9.03k
  }
scoped_refptr<yb::redisserver::BatchContext>::reset(yb::redisserver::BatchContext*)
Line
Count
Source
415
5.61M
  void reset(T* p = NULL) {
416
5.61M
    *this = p;
417
5.61M
  }
scoped_refptr<yb::tserver::RemoteBootstrapSession>::reset(yb::tserver::RemoteBootstrapSession*)
Line
Count
Source
415
2.04k
  void reset(T* p = NULL) {
416
2.04k
    *this = p;
417
2.04k
  }
scoped_refptr<yb::tserver::TransitionInProgressDeleter>::reset(yb::tserver::TransitionInProgressDeleter*)
Line
Count
Source
415
217k
  void reset(T* p = NULL) {
416
217k
    *this = p;
417
217k
  }
scoped_refptr<yb::log::LogAnchorRegistry>::reset(yb::log::LogAnchorRegistry*)
Line
Count
Source
415
4
  void reset(T* p = NULL) {
416
4
    *this = p;
417
4
  }
scoped_refptr<yb::Thread>::reset(yb::Thread*)
Line
Count
Source
415
519
  void reset(T* p = NULL) {
416
519
    *this = p;
417
519
  }
scoped_refptr<yb::master::SysConfigInfo>::reset(yb::master::SysConfigInfo*)
Line
Count
Source
415
7.51k
  void reset(T* p = NULL) {
416
7.51k
    *this = p;
417
7.51k
  }
Unexecuted instantiation: scoped_refptr<yb::master::TableInfo>::reset(yb::master::TableInfo*)
scoped_refptr<yb::client::internal::MetaCache>::reset(yb::client::internal::MetaCache*)
Line
Count
Source
415
30.7k
  void reset(T* p = NULL) {
416
30.7k
    *this = p;
417
30.7k
  }
scoped_refptr<yb::pggate::PgTxnManager>::reset(yb::pggate::PgTxnManager*)
Line
Count
Source
415
6.06k
  void reset(T* p = NULL) {
416
6.06k
    *this = p;
417
6.06k
  }
scoped_refptr<yb::Trace>::reset(yb::Trace*)
Line
Count
Source
415
78.4M
  void reset(T* p = NULL) {
416
78.4M
    *this = p;
417
78.4M
  }
scoped_refptr<yb::log::LogIndex>::reset(yb::log::LogIndex*)
Line
Count
Source
415
226k
  void reset(T* p = NULL) {
416
226k
    *this = p;
417
226k
  }
418
419
 protected:
420
  T* ptr_;
421
422
 private:
423
  template <typename U> friend class scoped_refptr;
424
};
425
426
// Handy utility for creating a scoped_refptr<T> out of a T* explicitly without
427
// having to retype all the template arguments
428
template <typename T>
429
78.2k
scoped_refptr<T> make_scoped_refptr(T* t) {
430
78.2k
  return scoped_refptr<T>(t);
431
78.2k
}
scoped_refptr<yb::FunctionGauge<unsigned long long> > make_scoped_refptr<yb::FunctionGauge<unsigned long long> >(yb::FunctionGauge<unsigned long long>*)
Line
Count
Source
429
51.6k
scoped_refptr<T> make_scoped_refptr(T* t) {
430
51.6k
  return scoped_refptr<T>(t);
431
51.6k
}
scoped_refptr<yb::FunctionGauge<long long> > make_scoped_refptr<yb::FunctionGauge<long long> >(yb::FunctionGauge<long long>*)
Line
Count
Source
429
25.7k
scoped_refptr<T> make_scoped_refptr(T* t) {
430
25.7k
  return scoped_refptr<T>(t);
431
25.7k
}
Unexecuted instantiation: rpc_context.cc:scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer> make_scoped_refptr<yb::rpc::(anonymous namespace)::PbTracer>(yb::rpc::(anonymous namespace)::PbTracer*)
scoped_refptr<yb::master::RoleInfo> make_scoped_refptr<yb::master::RoleInfo>(yb::master::RoleInfo*)
Line
Count
Source
429
845
scoped_refptr<T> make_scoped_refptr(T* t) {
430
845
  return scoped_refptr<T>(t);
431
845
}
432
433
template<class T, class... Args>
434
6.10M
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
6.10M
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
6.10M
}
scoped_refptr<yb::log::LogIndex> make_scoped_refptr<yb::log::LogIndex, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
434
30
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
30
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
30
}
redis_service.cc:scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl> make_scoped_refptr<yb::redisserver::(anonymous namespace)::BatchContextImpl, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::shared_ptr<yb::redisserver::RedisInboundCall>&, yb::redisserver::(anonymous namespace)::RedisServiceImplData*>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::shared_ptr<yb::redisserver::RedisInboundCall>&, yb::redisserver::(anonymous namespace)::RedisServiceImplData*&&)
Line
Count
Source
434
209k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
209k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
209k
}
scoped_refptr<yb::consensus::ConsensusRound> make_scoped_refptr<yb::consensus::ConsensusRound, yb::consensus::Consensus* const&, std::__1::shared_ptr<yb::consensus::ReplicateMsg> >(yb::consensus::Consensus* const&, std::__1::shared_ptr<yb::consensus::ReplicateMsg>&&)
Line
Count
Source
434
5.03M
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
5.03M
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
5.03M
}
scoped_refptr<yb::consensus::ConsensusRound> make_scoped_refptr<yb::consensus::ConsensusRound, yb::consensus::RaftConsensus*, std::__1::shared_ptr<yb::consensus::ReplicateMsg>&>(yb::consensus::RaftConsensus*&&, std::__1::shared_ptr<yb::consensus::ReplicateMsg>&)
Line
Count
Source
434
62.0k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
62.0k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
62.0k
}
scoped_refptr<yb::consensus::ConsensusRound> make_scoped_refptr<yb::consensus::ConsensusRound, yb::consensus::RaftConsensus*, std::__1::shared_ptr<yb::consensus::ReplicateMsg> const&>(yb::consensus::RaftConsensus*&&, std::__1::shared_ptr<yb::consensus::ReplicateMsg> const&)
Line
Count
Source
434
5.87k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
5.87k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
5.87k
}
scoped_refptr<yb::master::TabletInfo> make_scoped_refptr<yb::master::TabletInfo, yb::master::TableInfo*&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(yb::master::TableInfo*&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&)
Line
Count
Source
434
83.1k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
83.1k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
83.1k
}
scoped_refptr<yb::master::TableInfo> make_scoped_refptr<yb::master::TableInfo, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, scoped_refptr<yb::master::TasksTracker>&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, scoped_refptr<yb::master::TasksTracker>&)
Line
Count
Source
434
499k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
499k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
499k
}
Unexecuted instantiation: scoped_refptr<yb::master::SnapshotInfo> make_scoped_refptr<yb::master::SnapshotInfo, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Unexecuted instantiation: scoped_refptr<yb::master::CDCStreamInfo> make_scoped_refptr<yb::master::CDCStreamInfo, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
scoped_refptr<yb::master::CDCStreamInfo> make_scoped_refptr<yb::master::CDCStreamInfo, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
434
310
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
310
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
310
}
scoped_refptr<yb::pggate::PgSession> make_scoped_refptr<yb::pggate::PgSession, yb::pggate::PgClient*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, scoped_refptr<yb::pggate::PgTxnManager>&, scoped_refptr<yb::server::HybridClock>&, yb::SharedMemoryObject<yb::tserver::TServerSharedData>*, PgCallbacks&>(yb::pggate::PgClient*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, scoped_refptr<yb::pggate::PgTxnManager>&, scoped_refptr<yb::server::HybridClock>&, yb::SharedMemoryObject<yb::tserver::TServerSharedData>*&&, PgCallbacks&)
Line
Count
Source
434
6.08k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
6.08k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
6.08k
}
scoped_refptr<yb::pggate::PgTableDesc> make_scoped_refptr<yb::pggate::PgTableDesc, yb::PgObjectId const&, yb::master::GetTableSchemaResponsePB const&, std::__1::shared_ptr<yb::client::VersionedTablePartitionList> >(yb::PgObjectId const&, yb::master::GetTableSchemaResponsePB const&, std::__1::shared_ptr<yb::client::VersionedTablePartitionList>&&)
Line
Count
Source
434
191k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
191k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
191k
}
scoped_refptr<yb::rpc::ServicePool> make_scoped_refptr<yb::rpc::ServicePool, unsigned long const&, yb::rpc::ThreadPool*, yb::rpc::Scheduler*, std::__1::unique_ptr<yb::rpc::ServiceIf, std::__1::default_delete<yb::rpc::ServiceIf> >, scoped_refptr<yb::MetricEntity> >(unsigned long const&, yb::rpc::ThreadPool*&&, yb::rpc::Scheduler*&&, std::__1::unique_ptr<yb::rpc::ServiceIf, std::__1::default_delete<yb::rpc::ServiceIf> >&&, scoped_refptr<yb::MetricEntity>&&)
Line
Count
Source
434
151
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
151
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
151
}
scoped_refptr<yb::log::ReadableLogSegment> make_scoped_refptr<yb::log::ReadableLogSegment, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<yb::RandomAccessFile>&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<yb::RandomAccessFile>&)
Line
Count
Source
434
10.5k
scoped_refptr<T> make_scoped_refptr(Args&&... args) {
435
10.5k
  return scoped_refptr<T>(new T(std::forward<Args>(args)...));
436
10.5k
}
437
438
// equal_to and hash implementations for templated scoped_refptrs suitable for
439
// use with STL unordered_* containers.
440
struct ScopedRefPtrEqualsFunctor {
441
  template <class T>
442
63.2M
  bool operator()(const scoped_refptr<T>& x, const scoped_refptr<T>& y) const {
443
63.2M
    return x.get() == y.get();
444
63.2M
  }
445
};
446
447
struct ScopedRefPtrHashFunctor {
448
  template <class T>
449
125M
  size_t operator()(const scoped_refptr<T>& p) const {
450
125M
    return reinterpret_cast<size_t>(p.get());
451
125M
  }
452
};
453
454
template<class T>
455
9.82M
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
9.82M
  return !lhs;
457
9.82M
}
bool operator==<yb::Thread>(scoped_refptr<yb::Thread> const&, std::nullptr_t)
Line
Count
Source
455
8.58k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
8.58k
  return !lhs;
457
8.58k
}
bool operator==<yb::consensus::ConsensusRound>(scoped_refptr<yb::consensus::ConsensusRound> const&, std::nullptr_t)
Line
Count
Source
455
7.94M
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
7.94M
  return !lhs;
457
7.94M
}
bool operator==<yb::master::TableInfo>(scoped_refptr<yb::master::TableInfo> const&, std::nullptr_t)
Line
Count
Source
455
1.41M
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
1.41M
  return !lhs;
457
1.41M
}
bool operator==<yb::master::UDTypeInfo>(scoped_refptr<yb::master::UDTypeInfo> const&, std::nullptr_t)
Line
Count
Source
455
240
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
240
  return !lhs;
457
240
}
bool operator==<yb::master::NamespaceInfo>(scoped_refptr<yb::master::NamespaceInfo> const&, std::nullptr_t)
Line
Count
Source
455
200k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
200k
  return !lhs;
457
200k
}
bool operator==<yb::master::TabletInfo>(scoped_refptr<yb::master::TabletInfo> const&, std::nullptr_t)
Line
Count
Source
455
83.1k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
83.1k
  return !lhs;
457
83.1k
}
bool operator==<yb::master::TablegroupInfo>(scoped_refptr<yb::master::TablegroupInfo> const&, std::nullptr_t)
Line
Count
Source
455
68
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
68
  return !lhs;
457
68
}
bool operator==<yb::master::RedisConfigInfo>(scoped_refptr<yb::master::RedisConfigInfo> const&, std::nullptr_t)
Line
Count
Source
455
1.35k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
1.35k
  return !lhs;
457
1.35k
}
bool operator==<yb::master::RoleInfo>(scoped_refptr<yb::master::RoleInfo> const&, std::nullptr_t)
Line
Count
Source
455
3.76k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
3.76k
  return !lhs;
457
3.76k
}
Unexecuted instantiation: bool operator==<yb::master::SnapshotInfo>(scoped_refptr<yb::master::SnapshotInfo> const&, std::nullptr_t)
bool operator==<yb::master::CDCStreamInfo>(scoped_refptr<yb::master::CDCStreamInfo> const&, std::nullptr_t)
Line
Count
Source
455
5.52k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
5.52k
  return !lhs;
457
5.52k
}
Unexecuted instantiation: bool operator==<yb::master::UniverseReplicationInfo>(scoped_refptr<yb::master::UniverseReplicationInfo> const&, std::nullptr_t)
bool operator==<yb::client::internal::RemoteTablet>(scoped_refptr<yb::client::internal::RemoteTablet> const&, std::nullptr_t)
Line
Count
Source
455
158k
bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
456
158k
  return !lhs;
457
158k
}
458
459
template<class T>
460
274M
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
274M
  return static_cast<bool>(lhs);
462
274M
}
bool operator!=<yb::redisserver::BatchContext>(scoped_refptr<yb::redisserver::BatchContext> const&, std::nullptr_t)
Line
Count
Source
460
208k
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
208k
  return static_cast<bool>(lhs);
462
208k
}
bool operator!=<yb::Histogram>(scoped_refptr<yb::Histogram> const&, std::nullptr_t)
Line
Count
Source
460
149M
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
149M
  return static_cast<bool>(lhs);
462
149M
}
bool operator!=<yb::log::ReadableLogSegment>(scoped_refptr<yb::log::ReadableLogSegment> const&, std::nullptr_t)
Line
Count
Source
460
4.82M
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
4.82M
  return static_cast<bool>(lhs);
462
4.82M
}
bool operator!=<yb::master::TableInfo>(scoped_refptr<yb::master::TableInfo> const&, std::nullptr_t)
Line
Count
Source
460
97.6M
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
97.6M
  return static_cast<bool>(lhs);
462
97.6M
}
bool operator!=<yb::master::NamespaceInfo>(scoped_refptr<yb::master::NamespaceInfo> const&, std::nullptr_t)
Line
Count
Source
460
11.6k
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
11.6k
  return static_cast<bool>(lhs);
462
11.6k
}
bool operator!=<yb::master::TabletInfo>(scoped_refptr<yb::master::TabletInfo> const&, std::nullptr_t)
Line
Count
Source
460
247
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
247
  return static_cast<bool>(lhs);
462
247
}
bool operator!=<yb::master::UDTypeInfo>(scoped_refptr<yb::master::UDTypeInfo> const&, std::nullptr_t)
Line
Count
Source
460
47
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
47
  return static_cast<bool>(lhs);
462
47
}
bool operator!=<yb::Thread>(scoped_refptr<yb::Thread> const&, std::nullptr_t)
Line
Count
Source
460
119
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
119
  return static_cast<bool>(lhs);
462
119
}
bool operator!=<yb::master::SysConfigInfo>(scoped_refptr<yb::master::SysConfigInfo> const&, std::nullptr_t)
Line
Count
Source
460
2.53k
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
2.53k
  return static_cast<bool>(lhs);
462
2.53k
}
bool operator!=<yb::master::RoleInfo>(scoped_refptr<yb::master::RoleInfo> const&, std::nullptr_t)
Line
Count
Source
460
3.75k
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
3.75k
  return static_cast<bool>(lhs);
462
3.75k
}
bool operator!=<yb::master::UniverseReplicationInfo>(scoped_refptr<yb::master::UniverseReplicationInfo> const&, std::nullptr_t)
Line
Count
Source
460
2
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
2
  return static_cast<bool>(lhs);
462
2
}
bool operator!=<yb::client::internal::RemoteTablet>(scoped_refptr<yb::client::internal::RemoteTablet> const&, std::nullptr_t)
Line
Count
Source
460
1.61k
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
1.61k
  return static_cast<bool>(lhs);
462
1.61k
}
bool operator!=<yb::pggate::PgTableDesc>(scoped_refptr<yb::pggate::PgTableDesc> const&, std::nullptr_t)
Line
Count
Source
460
22.3M
bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t) {
461
22.3M
  return static_cast<bool>(lhs);
462
22.3M
}
463
464
template<class T>
465
bool operator==(std::nullptr_t, const scoped_refptr<T>& rhs) {
466
  return !rhs;
467
}
468
469
template<class T>
470
bool operator!=(std::nullptr_t, const scoped_refptr<T>& rhs) {
471
  return static_cast<bool>(rhs);
472
}
473
474
template<class T>
475
0
std::ostream& operator<<(std::ostream& out, const scoped_refptr<T>& ptr) {
476
0
  return out << ptr.get();
477
0
}
Unexecuted instantiation: std::__1::basic_ostream<char, std::__1::char_traits<char> >& operator<<<yb::tablet::OperationDriver>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, scoped_refptr<yb::tablet::OperationDriver> const&)
Unexecuted instantiation: std::__1::basic_ostream<char, std::__1::char_traits<char> >& operator<<<yb::client::internal::RemoteTablet>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, scoped_refptr<yb::client::internal::RemoteTablet> const&)
478
479
template <class T, class U>
480
bool operator==(const scoped_refptr<T>& lhs, const scoped_refptr<U>& rhs) {
481
  return lhs.get() == rhs.get();
482
}
483
484
template <class T, class U>
485
0
bool operator!=(const scoped_refptr<T>& lhs, const scoped_refptr<U>& rhs) {
486
0
  return lhs.get() != rhs.get();
487
0
}
488
489
#undef INVOKE_REF_COUNTED_DEBUG_HOOK
490
491
#endif // YB_GUTIL_REF_COUNTED_H