bug 1059429 - fix static constructor for FlushEvent r=froydnj
authorTrevor Saunders <trev.saunders@gmail.com>
Wed, 27 Aug 2014 14:06:55 -0400
changeset 203259 a8bc4e330ca0fc618c09f5f007b13c5266f5fcef
parent 203258 01eeee1da172483219c6e74deff74e5e4fb33207
child 203260 a1b25f21fe081d3e3033512a048fef0e955f91a9
push id27425
push userryanvm@gmail.com
push dateWed, 03 Sep 2014 20:38:59 +0000
treeherdermozilla-central@acbdce59da2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1059429
milestone35.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 1059429 - fix static constructor for FlushEvent r=froydnj
xpcom/base/nsMemoryImpl.h
--- a/xpcom/base/nsMemoryImpl.h
+++ b/xpcom/base/nsMemoryImpl.h
@@ -36,16 +36,17 @@ public:
                          const nsIID& aIID, void** aResult);
 
   nsresult FlushMemory(const char16_t* aReason, bool aImmediate);
   nsresult RunFlushers(const char16_t* aReason);
 
 protected:
   struct FlushEvent : public nsIRunnable
   {
+    MOZ_CONSTEXPR FlushEvent() : mReason(nullptr) {}
     NS_DECL_ISUPPORTS_INHERITED
     NS_DECL_NSIRUNNABLE
     const char16_t* mReason;
   };
 
   static mozilla::Atomic<bool> sIsFlushing;
   static FlushEvent sFlushEvent;
   static PRIntervalTime sLastFlushTime;