Bug 1168586 - Initialize oomAfter_ member to avoid warnings r=terrence
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 29 May 2015 10:43:31 +0100
changeset 246142 c1771a883c1ed6faef3bb282a4c8ecf01619f307
parent 246141 ce31b5be264ca2698829a748aefdbd8a345d1bfd
child 246143 531cb24dbb825ebb63353d2716175a79cf650676
push id60382
push userjcoppeard@mozilla.com
push dateFri, 29 May 2015 09:56:50 +0000
treeherdermozilla-inbound@9ef73cc7ef3d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs1168586
milestone41.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 1168586 - Initialize oomAfter_ member to avoid warnings r=terrence
js/src/jsgc.h
--- a/js/src/jsgc.h
+++ b/js/src/jsgc.h
@@ -1403,17 +1403,17 @@ class AutoSuppressGC
 /* Disable OOM testing in sections which are not OOM safe. */
 class AutoEnterOOMUnsafeRegion
 {
     bool oomEnabled_;
     int64_t oomAfter_;
 
   public:
     AutoEnterOOMUnsafeRegion()
-      : oomEnabled_(OOM_maxAllocations != UINT32_MAX)
+      : oomEnabled_(OOM_maxAllocations != UINT32_MAX), oomAfter_(0)
     {
         if (oomEnabled_) {
             oomAfter_ = OOM_maxAllocations - OOM_counter;
             OOM_maxAllocations = UINT32_MAX;
         }
     }
 
     ~AutoEnterOOMUnsafeRegion() {