author | Luke Wagner <luke@mozilla.com> |
Sat, 22 Oct 2016 12:34:50 -0500 | |
changeset 319054 | 8613eb3daab21899a5044030c5e224eaaf851ad6 |
parent 319053 | a6b3f4302b4f5cb915224507464130c0c647cbea |
child 319055 | c20146f38762bfc9849ec976ab39b3e63ad5f97e |
push id | 30858 |
push user | ryanvm@gmail.com |
push date | Sun, 23 Oct 2016 17:17:41 +0000 |
treeherder | mozilla-central@a9a41b69f3f9 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | me |
bugs | 1276029 |
milestone | 52.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
|
--- 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);