Bug 1618158 - Make Http3Session ref counting thread-safe. r=kershaw
authorDragana Damjanovic <dd.mozilla@gmail.com>
Tue, 24 Mar 2020 23:01:34 +0000
changeset 520309 36300cc32afc651a155380297dd1fdc8bcd31c31
parent 520308 3a4dc0ad12668c5ffcf25c115b15214b9e47834b
child 520310 14b59d4adc958b8fd2bbfa2497a758a1575a39c9
push id37246
push useropoprus@mozilla.com
push dateWed, 25 Mar 2020 03:40:33 +0000
treeherdermozilla-central@14b59d4adc95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskershaw
bugs1618158
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1618158 - Make Http3Session ref counting thread-safe. r=kershaw Differential Revision: https://phabricator.services.mozilla.com/D67703
netwerk/protocol/http/Http3Session.h
--- a/netwerk/protocol/http/Http3Session.h
+++ b/netwerk/protocol/http/Http3Session.h
@@ -34,17 +34,17 @@ class QuicSocketControl;
 
 class Http3Session final : public nsAHttpTransaction,
                            public nsAHttpConnection,
                            public nsAHttpSegmentReader,
                            public nsAHttpSegmentWriter {
  public:
   NS_DECLARE_STATIC_IID_ACCESSOR(NS_HTTP3SESSION_IID)
 
-  NS_DECL_ISUPPORTS
+  NS_DECL_THREADSAFE_ISUPPORTS
   NS_DECL_NSAHTTPTRANSACTION
   NS_DECL_NSAHTTPCONNECTION(mConnection)
   NS_DECL_NSAHTTPSEGMENTREADER
   NS_DECL_NSAHTTPSEGMENTWRITER
 
   Http3Session();
   nsresult Init(const nsACString& aOrigin, nsISocketTransport* aSocketTransport,
                 HttpConnectionUDP* readerWriter);