Bug 1132109 - Make CacheEntry::mSortingExpirationTime atomic/relaxed. r=michal
authorHonza Bambas <honzab.moz@firemni.cz>
Fri, 13 Feb 2015 07:59:00 -0500
changeset 229126 db8257416bff4cbf78f91a4f1ee1b82072eafadb
parent 229125 4a61c39218431767244c112f1dff0d62a589bfe6
child 229127 5c8a20b982fb8cb32b742df4244312bfa51faa3b
push id28282
push usercbook@mozilla.com
push dateMon, 16 Feb 2015 15:06:35 +0000
treeherdermozilla-central@09f4968d5f42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs1132109
milestone38.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 1132109 - Make CacheEntry::mSortingExpirationTime atomic/relaxed. r=michal CLOSED TREE
netwerk/cache2/CacheEntry.h
--- a/netwerk/cache2/CacheEntry.h
+++ b/netwerk/cache2/CacheEntry.h
@@ -108,17 +108,17 @@ public:
 
   static nsresult HashingKey(nsCSubstring const& aStorageID,
                              nsCSubstring const& aEnhanceID,
                              nsCSubstring const& aURISpec,
                              nsACString &aResult);
 
   // Accessed only on the service management thread
   double mFrecency;
-  uint32_t mSortingExpirationTime;
+  ::mozilla::Atomic<uint32_t, ::mozilla::Relaxed> mSortingExpirationTime;
 
   // Memory reporting
   size_t SizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf) const;
   size_t SizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf) const;
 
 private:
   virtual ~CacheEntry();