/work/obj-fuzz/dist/include/mozilla/RefCounted.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | /* CRTP refcounting templates. Do not use unless you are an Expert. */ |
8 | | |
9 | | #ifndef mozilla_RefCounted_h |
10 | | #define mozilla_RefCounted_h |
11 | | |
12 | | #include "mozilla/AlreadyAddRefed.h" |
13 | | #include "mozilla/Assertions.h" |
14 | | #include "mozilla/Atomics.h" |
15 | | #include "mozilla/Attributes.h" |
16 | | #include "mozilla/Move.h" |
17 | | #include "mozilla/RefCountType.h" |
18 | | #include "mozilla/TypeTraits.h" |
19 | | |
20 | | #include <atomic> |
21 | | |
22 | | #if defined(MOZILLA_INTERNAL_API) |
23 | | #include "nsXPCOM.h" |
24 | | #endif |
25 | | |
26 | | #if defined(MOZILLA_INTERNAL_API) && \ |
27 | | (defined(DEBUG) || defined(FORCE_BUILD_REFCNT_LOGGING)) |
28 | | #define MOZ_REFCOUNTED_LEAK_CHECKING |
29 | | #endif |
30 | | |
31 | | namespace mozilla { |
32 | | |
33 | | /** |
34 | | * RefCounted<T> is a sort of a "mixin" for a class T. RefCounted |
35 | | * manages, well, refcounting for T, and because RefCounted is |
36 | | * parameterized on T, RefCounted<T> can call T's destructor directly. |
37 | | * This means T doesn't need to have a virtual dtor and so doesn't |
38 | | * need a vtable. |
39 | | * |
40 | | * RefCounted<T> is created with refcount == 0. Newly-allocated |
41 | | * RefCounted<T> must immediately be assigned to a RefPtr to make the |
42 | | * refcount > 0. It's an error to allocate and free a bare |
43 | | * RefCounted<T>, i.e. outside of the RefPtr machinery. Attempts to |
44 | | * do so will abort DEBUG builds. |
45 | | * |
46 | | * Live RefCounted<T> have refcount > 0. The lifetime (refcounts) of |
47 | | * live RefCounted<T> are controlled by RefPtr<T> and |
48 | | * RefPtr<super/subclass of T>. Upon a transition from refcounted==1 |
49 | | * to 0, the RefCounted<T> "dies" and is destroyed. The "destroyed" |
50 | | * state is represented in DEBUG builds by refcount==0xffffdead. This |
51 | | * state distinguishes use-before-ref (refcount==0) from |
52 | | * use-after-destroy (refcount==0xffffdead). |
53 | | * |
54 | | * Note that when deriving from RefCounted or AtomicRefCounted, you |
55 | | * should add MOZ_DECLARE_REFCOUNTED_TYPENAME(ClassName) to the public |
56 | | * section of your class, where ClassName is the name of your class. |
57 | | * |
58 | | * Note: SpiderMonkey should use js::RefCounted instead since that type |
59 | | * will use appropriate js_delete and also not break ref-count logging. |
60 | | */ |
61 | | namespace detail { |
62 | | const MozRefCountType DEAD = 0xffffdead; |
63 | | |
64 | | // When building code that gets compiled into Gecko, try to use the |
65 | | // trace-refcount leak logging facilities. |
66 | | #ifdef MOZ_REFCOUNTED_LEAK_CHECKING |
67 | | class RefCountLogger |
68 | | { |
69 | | public: |
70 | | static void logAddRef(const void* aPointer, MozRefCountType aRefCount, |
71 | | const char* aTypeName, uint32_t aInstanceSize) |
72 | | { |
73 | | MOZ_ASSERT(aRefCount != DEAD); |
74 | | NS_LogAddRef(const_cast<void*>(aPointer), aRefCount, aTypeName, |
75 | | aInstanceSize); |
76 | | } |
77 | | |
78 | | static void logRelease(const void* aPointer, MozRefCountType aRefCount, |
79 | | const char* aTypeName) |
80 | | { |
81 | | MOZ_ASSERT(aRefCount != DEAD); |
82 | | NS_LogRelease(const_cast<void*>(aPointer), aRefCount, aTypeName); |
83 | | } |
84 | | }; |
85 | | #endif |
86 | | |
87 | | // This is used WeakPtr.h as well as this file. |
88 | | enum RefCountAtomicity |
89 | | { |
90 | | AtomicRefCount, |
91 | | NonAtomicRefCount |
92 | | }; |
93 | | |
94 | | template<typename T, RefCountAtomicity Atomicity, recordreplay::Behavior Recording> |
95 | | class RC |
96 | | { |
97 | | public: |
98 | 0 | explicit RC(T aCount) : mValue(aCount) {} |
99 | | |
100 | 0 | T operator++() { return ++mValue; } |
101 | 0 | T operator--() { return --mValue; } |
102 | | |
103 | | void operator=(const T& aValue) { mValue = aValue; } |
104 | | |
105 | | operator T() const { return mValue; } |
106 | | |
107 | | private: |
108 | | T mValue; |
109 | | }; |
110 | | |
111 | | template<typename T, recordreplay::Behavior Recording> |
112 | | class RC<T, AtomicRefCount, Recording> |
113 | | { |
114 | | public: |
115 | 0 | explicit RC(T aCount) : mValue(aCount) { } |
116 | | |
117 | | T operator++() |
118 | 0 | { |
119 | 0 | // Memory synchronization is not required when incrementing a |
120 | 0 | // reference count. The first increment of a reference count on a |
121 | 0 | // thread is not important, since the first use of the object on a |
122 | 0 | // thread can happen before it. What is important is the transfer |
123 | 0 | // of the pointer to that thread, which may happen prior to the |
124 | 0 | // first increment on that thread. The necessary memory |
125 | 0 | // synchronization is done by the mechanism that transfers the |
126 | 0 | // pointer between threads. |
127 | 0 | AutoRecordAtomicAccess<Recording> record; |
128 | 0 | return mValue.fetch_add(1, std::memory_order_relaxed) + 1; |
129 | 0 | } |
130 | | |
131 | | T operator--() |
132 | 0 | { |
133 | 0 | // Since this may be the last release on this thread, we need |
134 | 0 | // release semantics so that prior writes on this thread are visible |
135 | 0 | // to the thread that destroys the object when it reads mValue with |
136 | 0 | // acquire semantics. |
137 | 0 | AutoRecordAtomicAccess<Recording> record; |
138 | 0 | T result = mValue.fetch_sub(1, std::memory_order_release) - 1; |
139 | 0 | if (result == 0) { |
140 | 0 | // We're going to destroy the object on this thread, so we need |
141 | 0 | // acquire semantics to synchronize with the memory released by |
142 | 0 | // the last release on other threads, that is, to ensure that |
143 | 0 | // writes prior to that release are now visible on this thread. |
144 | 0 | std::atomic_thread_fence(std::memory_order_acquire); |
145 | 0 | } |
146 | 0 | return result; |
147 | 0 | } |
148 | | |
149 | | // This method is only called in debug builds, so we're not too concerned |
150 | | // about its performance. |
151 | | void operator=(const T& aValue) { |
152 | | AutoRecordAtomicAccess<Recording> record; |
153 | | mValue.store(aValue, std::memory_order_seq_cst); |
154 | | } |
155 | | |
156 | | operator T() const |
157 | 0 | { |
158 | 0 | // Use acquire semantics since we're not sure what the caller is |
159 | 0 | // doing. |
160 | 0 | AutoRecordAtomicAccess<Recording> record; |
161 | 0 | return mValue.load(std::memory_order_acquire); |
162 | 0 | } |
163 | | |
164 | | private: |
165 | | std::atomic<T> mValue; |
166 | | }; |
167 | | |
168 | | template<typename T, RefCountAtomicity Atomicity, |
169 | | recordreplay::Behavior Recording = recordreplay::Behavior::Preserve> |
170 | | class RefCounted |
171 | | { |
172 | | protected: |
173 | 0 | RefCounted() : mRefCnt(0) {} Unexecuted instantiation: Unified_cpp_xpcom_base2.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::MessageLoopIdleTask>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::Http2Stream>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::net::ExtensionStreamGetter, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::DataChannelConnection::DataConnectionListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::PeerIdentity, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::WebRtcCallWrapper, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsOfflineCacheUpdateOwner>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::WebExtensionPolicy>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawTarget, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::GradientStops, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SourceSurface, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::EventObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::NativeFontResource, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::UnscaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::PathSink, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawEventRecorder, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::FilterNode, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::CommandBuffer, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SyncObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::Path, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::ScaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::GLContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::SurfaceFactory>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::ImageContainer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::PersistentBufferProvider, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::UnscaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::ScaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::InputBlockState, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::TextureSource, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::SVGContextPaint, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::IProgressObserver>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::ProgressTracker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::RasterImage>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PlacesWeakCallbackWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::places::INativePlacesEventCallback>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Selection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::CSSStyleRule>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsDocShell>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLContextLossHandler>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLFramebuffer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::webgl::LinkedProgramInfo, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo const>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsGeolocationRequest>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::AutoplayPermissionManager>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::FrameCaptureListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackSource::Sink>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::HTMLMediaElement>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsTextEditorState>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackConsumer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::SourceListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaKeys>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PannerNode>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::SpeechRecognition>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsNPAPIPluginInstance>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: ProcessHangMonitor.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::HangMonitorParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Worker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Promise>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsXBLPrototypeBinding>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationAvailability>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationConnection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRGBColor, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRect, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::dom::CSSValue, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsPresContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::BrowsingContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::extensions::AtomSet, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::ChannelWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::RefCounted() |
174 | 0 | ~RefCounted() { MOZ_ASSERT(mRefCnt == detail::DEAD); } Unexecuted instantiation: Unified_cpp_xpcom_base2.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::MessageLoopIdleTask>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::Http2Stream>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::net::ExtensionStreamGetter, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::DataChannelConnection::DataConnectionListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackSource::Sink>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::WebRtcCallWrapper, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::PeerIdentity, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsOfflineCacheUpdateOwner>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::WebExtensionPolicy>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawTarget, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::GradientStops, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SourceSurface, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::EventObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::NativeFontResource, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::PathSink, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawEventRecorder, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::FilterNode, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::CommandBuffer, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SyncObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::Path, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::UnscaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::UnscaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::ScaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::ScaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::GLContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::SurfaceFactory>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::ImageContainer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::PersistentBufferProvider, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::InputBlockState, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::TextureSource, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::SVGContextPaint, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::IProgressObserver>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::RasterImage>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::ProgressTracker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PlacesWeakCallbackWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::places::INativePlacesEventCallback>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Selection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::CSSStyleRule>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsDocShell>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::extensions::AtomSet, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLContextLossHandler>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLFramebuffer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::webgl::LinkedProgramInfo, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo const>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsGeolocationRequest>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::AutoplayPermissionManager>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::FrameCaptureListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::HTMLMediaElement>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsTextEditorState>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackConsumer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::SourceListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaKeys>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PannerNode>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::SpeechRecognition>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsNPAPIPluginInstance>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: ProcessHangMonitor.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::HangMonitorParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Worker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Promise>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsXBLPrototypeBinding>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationAvailability>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationConnection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::dom::CSSValue, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRGBColor, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRect, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsPresContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::BrowsingContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::ChannelWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::~RefCounted() |
175 | | |
176 | | public: |
177 | | // Compatibility with nsRefPtr. |
178 | | void AddRef() const |
179 | 0 | { |
180 | 0 | // Note: this method must be thread safe for AtomicRefCounted. |
181 | 0 | MOZ_ASSERT(int32_t(mRefCnt) >= 0); |
182 | 0 | #ifndef MOZ_REFCOUNTED_LEAK_CHECKING |
183 | 0 | ++mRefCnt; |
184 | | #else |
185 | | const char* type = static_cast<const T*>(this)->typeName(); |
186 | | uint32_t size = static_cast<const T*>(this)->typeSize(); |
187 | | const void* ptr = static_cast<const T*>(this); |
188 | | MozRefCountType cnt = ++mRefCnt; |
189 | | detail::RefCountLogger::logAddRef(ptr, cnt, type, size); |
190 | | #endif |
191 | | } Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::GradientStops, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SourceSurface, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::UnscaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: Unified_cpp_xpcom_base2.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::MessageLoopIdleTask>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawTarget, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::Http2Stream>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::extensions::AtomSet, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::ChannelWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::net::ExtensionStreamGetter, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::DataChannelConnection::DataConnectionListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackSource::Sink>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::WebRtcCallWrapper, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::PeerIdentity, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsOfflineCacheUpdateOwner>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::WebExtensionPolicy>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::PathSink, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::FilterNode, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::ScaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawEventRecorder, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::NativeFontResource, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::Path, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SyncObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::CommandBuffer, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::EventObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::GLContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::SurfaceFactory>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::ImageContainer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::PersistentBufferProvider, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::TextureSource, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::FrameCaptureListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::UnscaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::ScaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::InputBlockState, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::SyncObjectClient, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::SVGContextPaint, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::IProgressObserver>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::ProgressTracker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::RasterImage>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::dom::CSSValue, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PlacesWeakCallbackWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::places::INativePlacesEventCallback>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Selection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::CSSStyleRule>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsDocShell>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLContextLossHandler>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::webgl::LinkedProgramInfo, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLFramebuffer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo const>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsGeolocationRequest>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::AutoplayPermissionManager>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::HTMLMediaElement>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsTextEditorState>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackConsumer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::SourceListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaKeys>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PannerNode>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::SpeechRecognition>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsNPAPIPluginInstance>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: ProcessHangMonitor.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::HangMonitorParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Worker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Promise>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsXBLPrototypeBinding>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationAvailability>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationConnection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRGBColor, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRect, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsPresContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::BrowsingContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::AddRef() const |
192 | | |
193 | | void Release() const |
194 | 0 | { |
195 | 0 | // Note: this method must be thread safe for AtomicRefCounted. |
196 | 0 | MOZ_ASSERT(int32_t(mRefCnt) > 0); |
197 | 0 | #ifndef MOZ_REFCOUNTED_LEAK_CHECKING |
198 | 0 | MozRefCountType cnt = --mRefCnt; |
199 | | #else |
200 | | const char* type = static_cast<const T*>(this)->typeName(); |
201 | | const void* ptr = static_cast<const T*>(this); |
202 | | MozRefCountType cnt = --mRefCnt; |
203 | | // Note: it's not safe to touch |this| after decrementing the refcount, |
204 | | // except for below. |
205 | | detail::RefCountLogger::logRelease(ptr, cnt, type); |
206 | | #endif |
207 | 0 | if (0 == cnt) { |
208 | 0 | // Because we have atomically decremented the refcount above, only |
209 | 0 | // one thread can get a 0 count here, so as long as we can assume that |
210 | 0 | // everything else in the system is accessing this object through |
211 | 0 | // RefPtrs, it's safe to access |this| here. |
212 | | #ifdef DEBUG |
213 | | mRefCnt = detail::DEAD; |
214 | | #endif |
215 | | delete static_cast<const T*>(this); |
216 | 0 | } |
217 | 0 | } Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::GradientStops, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SourceSurface, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::UnscaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::UnscaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::ScaledFont>, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawTarget, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: Unified_cpp_xpcom_base2.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::MessageLoopIdleTask>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::IProgressObserver>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::Path, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::SVGContextPaint, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::extensions::AtomSet, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::Http2Stream>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::ChannelWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::net::ExtensionStreamGetter, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::DataChannelConnection::DataConnectionListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackSource::Sink>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlChild>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::PathSink, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::WebRtcCallWrapper, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::PeerIdentity, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsOfflineCacheUpdateOwner>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::WebExtensionPolicy>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::FilterNode, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::ScaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawEventRecorder, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::NativeFontResource, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SyncObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::CommandBuffer, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::EventObject, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::GLContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::gl::SurfaceFactory>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::layers::ImageContainer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::PersistentBufferProvider, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::TextureSource, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::FrameCaptureListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::InputBlockState, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::SyncObjectClient, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::layers::SyncObjectHost, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::ProgressTracker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::image::RasterImage>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::dom::CSSValue, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PlacesWeakCallbackWrapper>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::places::INativePlacesEventCallback>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Selection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::CSSStyleRule>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsDocShell>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::SpeechRecognition>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLFramebuffer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::webgl::LinkedProgramInfo, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLContextLossHandler>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo const>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsGeolocationRequest>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::AutoplayPermissionManager>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::HTMLMediaElement>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsTextEditorState>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackConsumer>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::SourceListener>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaKeys>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PannerNode>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsNPAPIPluginInstance>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: ProcessHangMonitor.cpp:mozilla::detail::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::HangMonitorParent>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Worker>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Promise>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsXBLPrototypeBinding>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationAvailability>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationConnection>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRect, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<nsDOMCSSRGBColor, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<nsPresContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::detail::WeakReference<mozilla::dom::BrowsingContext>, (mozilla::detail::RefCountAtomicity)1, (mozilla::recordreplay::Behavior)1>::Release() const |
218 | | |
219 | | // Compatibility with wtf::RefPtr. |
220 | | void ref() { AddRef(); } |
221 | | void deref() { Release(); } |
222 | 0 | MozRefCountType refCount() const { return mRefCnt; } |
223 | | bool hasOneRef() const |
224 | 0 | { |
225 | 0 | MOZ_ASSERT(mRefCnt > 0); |
226 | 0 | return mRefCnt == 1; |
227 | 0 | } Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::UnscaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::hasOneRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::SourceSurface, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::hasOneRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::ScaledFont, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::hasOneRef() const Unexecuted instantiation: mozilla::detail::RefCounted<mozilla::gfx::DrawTarget, (mozilla::detail::RefCountAtomicity)0, (mozilla::recordreplay::Behavior)1>::hasOneRef() const |
228 | | |
229 | | private: |
230 | | mutable RC<MozRefCountType, Atomicity, Recording> mRefCnt; |
231 | | }; |
232 | | |
233 | | #ifdef MOZ_REFCOUNTED_LEAK_CHECKING |
234 | | // Passing override for the optional argument marks the typeName and |
235 | | // typeSize functions defined by this macro as overrides. |
236 | | #define MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(T, ...) \ |
237 | | virtual const char* typeName() const __VA_ARGS__ { return #T; } \ |
238 | | virtual size_t typeSize() const __VA_ARGS__ { return sizeof(*this); } |
239 | | #else |
240 | | #define MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(T, ...) |
241 | | #endif |
242 | | |
243 | | // Note that this macro is expanded unconditionally because it declares only |
244 | | // two small inline functions which will hopefully get eliminated by the linker |
245 | | // in non-leak-checking builds. |
246 | | #define MOZ_DECLARE_REFCOUNTED_TYPENAME(T) \ |
247 | 0 | const char* typeName() const { return #T; } \ Unexecuted instantiation: mozilla::VolatileBuffer::typeName() const Unexecuted instantiation: imgRequestProxy::typeName() const Unexecuted instantiation: mozilla::SVGContextPaint::typeName() const Unexecuted instantiation: mozilla::extensions::AtomSet::typeName() const Unexecuted instantiation: mozilla::layers::ISurfaceAllocator::typeName() const Unexecuted instantiation: mozilla::net::ExtensionStreamGetter::typeName() const Unexecuted instantiation: mozilla::WebRtcCallWrapper::typeName() const Unexecuted instantiation: mozilla::PeerIdentity::typeName() const Unexecuted instantiation: mozilla::gfx::EventObject::typeName() const Unexecuted instantiation: mozilla::gfx::SyncObject::typeName() const Unexecuted instantiation: mozilla::gfx::CommandBuffer::typeName() const Unexecuted instantiation: mozilla::layers::InputBlockState::typeName() const Unexecuted instantiation: mozilla::image::imgFrame::typeName() const Unexecuted instantiation: mozilla::image::IResumable::typeName() const Unexecuted instantiation: mozilla::image::SourceBuffer::typeName() const Unexecuted instantiation: mozilla::image::DecodePoolImpl::typeName() const Unexecuted instantiation: mozilla::image::MultipartImage::typeName() const Unexecuted instantiation: mozilla::image::NextPartObserver::typeName() const Unexecuted instantiation: mozilla::image::CachedSurface::typeName() const Unexecuted instantiation: mozilla::image::ImageSurfaceCache::typeName() const Unexecuted instantiation: mozilla::dom::CSSValue::typeName() const Unexecuted instantiation: mozilla::dom::StereoPannerNode::typeName() const Unexecuted instantiation: mozilla::devtools::HeapSnapshot::typeName() const Unexecuted instantiation: mozilla::webgl::LinkedProgramInfo::typeName() const Unexecuted instantiation: nsDOMCSSRGBColor::typeName() const Unexecuted instantiation: nsDOMCSSRect::typeName() const |
248 | 0 | size_t typeSize() const { return sizeof(*this); } Unexecuted instantiation: mozilla::VolatileBuffer::typeSize() const Unexecuted instantiation: imgRequestProxy::typeSize() const Unexecuted instantiation: mozilla::SVGContextPaint::typeSize() const Unexecuted instantiation: mozilla::extensions::AtomSet::typeSize() const Unexecuted instantiation: mozilla::layers::ISurfaceAllocator::typeSize() const Unexecuted instantiation: mozilla::net::ExtensionStreamGetter::typeSize() const Unexecuted instantiation: mozilla::WebRtcCallWrapper::typeSize() const Unexecuted instantiation: mozilla::PeerIdentity::typeSize() const Unexecuted instantiation: mozilla::gfx::EventObject::typeSize() const Unexecuted instantiation: mozilla::gfx::SyncObject::typeSize() const Unexecuted instantiation: mozilla::gfx::CommandBuffer::typeSize() const Unexecuted instantiation: mozilla::layers::InputBlockState::typeSize() const Unexecuted instantiation: mozilla::image::imgFrame::typeSize() const Unexecuted instantiation: mozilla::image::IResumable::typeSize() const Unexecuted instantiation: mozilla::image::SourceBuffer::typeSize() const Unexecuted instantiation: mozilla::image::DecodePoolImpl::typeSize() const Unexecuted instantiation: mozilla::image::MultipartImage::typeSize() const Unexecuted instantiation: mozilla::image::NextPartObserver::typeSize() const Unexecuted instantiation: mozilla::image::CachedSurface::typeSize() const Unexecuted instantiation: mozilla::image::ImageSurfaceCache::typeSize() const Unexecuted instantiation: mozilla::dom::CSSValue::typeSize() const Unexecuted instantiation: mozilla::dom::StereoPannerNode::typeSize() const Unexecuted instantiation: mozilla::devtools::HeapSnapshot::typeSize() const Unexecuted instantiation: mozilla::webgl::LinkedProgramInfo::typeSize() const Unexecuted instantiation: nsDOMCSSRGBColor::typeSize() const Unexecuted instantiation: nsDOMCSSRect::typeSize() const |
249 | | |
250 | | } // namespace detail |
251 | | |
252 | | template<typename T> |
253 | | class RefCounted : public detail::RefCounted<T, detail::NonAtomicRefCount> |
254 | | { |
255 | | public: |
256 | | ~RefCounted() |
257 | 0 | { |
258 | 0 | static_assert(IsBaseOf<RefCounted, T>::value, |
259 | 0 | "T must derive from RefCounted<T>"); |
260 | 0 | } Unexecuted instantiation: Unified_cpp_xpcom_base2.cpp:mozilla::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::MessageLoopIdleTask> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::net::Http2Stream> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::net::ExtensionStreamGetter>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::DataChannelConnection::DataConnectionListener> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PContentParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::layers::PCompositorManagerChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::net::PNeckoChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::PProfilerParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::PRemoteSpellcheckEngineChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerContainerChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PServiceWorkerRegistrationChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PBrowserChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::cache::PCacheStreamControlChild> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackSource::Sink> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::WebRtcCallWrapper>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::PeerIdentity>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsOfflineCacheUpdateOwner> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::WebExtensionPolicy> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::gfx::PathSink>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::gfx::DrawEventRecorder>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::gl::GLContext> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::gl::SurfaceFactory> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::layers::ImageContainer> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::layers::PersistentBufferProvider>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::layers::InputBlockState>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::layers::TextureSource>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::SVGContextPaint>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::image::IProgressObserver> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::image::RasterImage> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::image::ProgressTracker> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PlacesWeakCallbackWrapper> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::places::INativePlacesEventCallback> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Selection> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::CSSStyleRule> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsDocShell> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::extensions::AtomSet>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLContextLossHandler> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::WebGLFramebuffer> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::webgl::LinkedProgramInfo>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::webgl::LinkedProgramInfo const> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsGeolocationRequest> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::AutoplayPermissionManager> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::FrameCaptureListener> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::HTMLMediaElement> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsTextEditorState> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaStreamTrackConsumer> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::SourceListener> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::MediaKeys> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PannerNode> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::SpeechRecognition> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsNPAPIPluginInstance> >::~RefCounted() Unexecuted instantiation: ProcessHangMonitor.cpp:mozilla::RefCounted<mozilla::detail::WeakReference<(anonymous namespace)::HangMonitorParent> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Worker> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::Promise> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsXBLPrototypeBinding> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationAvailability> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::PresentationConnection> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::dom::CSSValue>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<nsDOMCSSRGBColor>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<nsDOMCSSRect>::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<nsPresContext> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::dom::BrowsingContext> >::~RefCounted() Unexecuted instantiation: mozilla::RefCounted<mozilla::detail::WeakReference<mozilla::extensions::ChannelWrapper> >::~RefCounted() |
261 | | }; |
262 | | |
263 | | namespace external { |
264 | | |
265 | | /** |
266 | | * AtomicRefCounted<T> is like RefCounted<T>, with an atomically updated |
267 | | * reference counter. |
268 | | * |
269 | | * NOTE: Please do not use this class, use NS_INLINE_DECL_THREADSAFE_REFCOUNTING |
270 | | * instead. |
271 | | */ |
272 | | template<typename T, recordreplay::Behavior Recording = recordreplay::Behavior::Preserve> |
273 | | class AtomicRefCounted : |
274 | | public mozilla::detail::RefCounted<T, mozilla::detail::AtomicRefCount, Recording> |
275 | | { |
276 | | public: |
277 | | ~AtomicRefCounted() |
278 | 0 | { |
279 | 0 | static_assert(IsBaseOf<AtomicRefCounted, T>::value, |
280 | 0 | "T must derive from AtomicRefCounted<T>"); |
281 | 0 | } Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::DrawTarget, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::GradientStops, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::SourceSurface, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::EventObject, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::NativeFontResource, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::FilterNode, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::CommandBuffer, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::SyncObject, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::Path, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::UnscaledFont>, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::UnscaledFont, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::detail::ThreadSafeWeakReference<mozilla::gfx::ScaledFont>, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() Unexecuted instantiation: mozilla::external::AtomicRefCounted<mozilla::gfx::ScaledFont, (mozilla::recordreplay::Behavior)1>::~AtomicRefCounted() |
282 | | }; |
283 | | |
284 | | } // namespace external |
285 | | |
286 | | } // namespace mozilla |
287 | | |
288 | | #endif // mozilla_RefCounted_h |