Bug 1276029 - Baldr: remove accidental MOZ_ALWAYS_TRUE (r=me)
authorLuke Wagner <luke@mozilla.com>
Sat, 22 Oct 2016 12:34:50 -0500
changeset 319054 8613eb3daab21899a5044030c5e224eaaf851ad6
parent 319053 a6b3f4302b4f5cb915224507464130c0c647cbea
child 319055 c20146f38762bfc9849ec976ab39b3e63ad5f97e
push id30858
push userryanvm@gmail.com
push dateSun, 23 Oct 2016 17:17:41 +0000
treeherdermozilla-central@a9a41b69f3f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1276029
milestone52.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 1276029 - Baldr: remove accidental MOZ_ALWAYS_TRUE (r=me) MozReview-Commit-ID: KqN2VVyptr0
js/src/asmjs/WasmModule.cpp
--- a/js/src/asmjs/WasmModule.cpp
+++ b/js/src/asmjs/WasmModule.cpp
@@ -419,17 +419,17 @@ MapFile(PRFileDesc* file, PRFileInfo* in
     PRFileMap* map = PR_CreateFileMap(file, info->size, PR_PROT_READONLY);
     if (!map)
         return nullptr;
 
     // PRFileMap objects do not need to be kept alive after the memory has been
     // mapped, so unconditionally close the PRFileMap, regardless of whether
     // PR_MemMap succeeds.
     uint8_t* memory = (uint8_t*)PR_MemMap(map, 0, info->size);
-    MOZ_ALWAYS_TRUE(PR_CloseFileMap(map));
+    PR_CloseFileMap(map);
     return UniqueMapping(memory, MemUnmap(info->size));
 }
 
 bool
 wasm::CompiledModuleAssumptionsMatch(PRFileDesc* compiled, JS::BuildIdCharVector&& buildId)
 {
     PRFileInfo info;
     UniqueMapping mapping = MapFile(compiled, &info);