Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
authorValentin Gosu <valentin.gosu@gmail.com>
Fri, 09 Feb 2018 13:20:04 +0100
changeset 403981 48b9f6671588c3c2b8d3b4ea6ba1267f5e297f83
parent 403980 93227b85dd4425e59eee6958c0db9669dfb01414
child 403982 cfc9afe916091e6449f7d748991e2a19187dc817
push id33447
push usernerli@mozilla.com
push dateThu, 15 Feb 2018 19:29:41 +0000
treeherdermozilla-central@ee717948a600 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbagder
bugs1334465
milestone60.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 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder MozReview-Commit-ID: 6irCJMAjzjW
netwerk/protocol/http/HttpChannelParent.h
--- a/netwerk/protocol/http/HttpChannelParent.h
+++ b/netwerk/protocol/http/HttpChannelParent.h
@@ -261,17 +261,17 @@ private:
   friend class HttpBackgroundChannelParent;
   friend class DivertDataAvailableEvent;
   friend class DivertStopRequestEvent;
   friend class DivertCompleteEvent;
 
   RefPtr<HttpBaseChannel>       mChannel;
   nsCOMPtr<nsICacheEntry>       mCacheEntry;
   nsCOMPtr<nsIAssociatedContentSecurity>  mAssociatedContentSecurity;
-  bool mIPCClosed;                // PHttpChannel actor has been Closed()
+  Atomic<bool> mIPCClosed; // PHttpChannel actor has been Closed()
 
   nsCOMPtr<nsIChannel> mRedirectChannel;
   nsCOMPtr<nsIAsyncVerifyRedirectCallback> mRedirectCallback;
 
   nsAutoPtr<class nsHttpChannel::OfflineCacheEntryAsForeignMarker> mOfflineForeignMarker;
 
   // OnStatus is always called before OnProgress.
   // Set true in OnStatus if next OnProgress can be ignored