Bug 1483182 - Do report OOM failures in HashTable::reserve(). r=luke
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 21 Aug 2018 19:07:20 +1000
changeset 487872 c3bb26f985552814f9e35639a15acd10a15878bb
parent 487871 8116d3ee3a5a5564eb0aae5cd2cea501e728deb9
child 487873 3b5452b3778153f6f223bb2177235835b2314eb6
child 487889 054c113b5cb18011f4a386bdeced1ff05aecbe0d
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs1483182
milestone63.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 1483182 - Do report OOM failures in HashTable::reserve(). r=luke This fixes a typo.
mfbt/HashTable.h
--- a/mfbt/HashTable.h
+++ b/mfbt/HashTable.h
@@ -2050,17 +2050,17 @@ public:
       return true;
     }
 
     uint32_t bestCapacity = this->bestCapacity(aLen);
     if (bestCapacity <= capacity()) {
       return true;  // Capacity is already sufficient.
     }
 
-    RebuildStatus status = changeTableSize(bestCapacity, DontReportFailure);
+    RebuildStatus status = changeTableSize(bestCapacity, ReportFailure);
     MOZ_ASSERT(status != NotOverloaded);
     return status != RehashFailed;
   }
 
   Iterator iter() const
   {
     return Iterator(*this);
   }