Bug 1277742 - Use correct namespace for ChunkSize on aarch64. r=ehoogeveen
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Fri, 03 Jun 2016 19:11:00 +0900
changeset 341460 58137ecd12edb7ae1a57c80da811676bc66fd03c
parent 341459 d02ab40ae319910659cf19114f41e7aa7ce68e4d
child 341461 ae8e12ba7142c85d035a577fb0cfc9463a390097
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehoogeveen
bugs1277742
milestone49.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 1277742 - Use correct namespace for ChunkSize on aarch64. r=ehoogeveen MozReview-Commit-ID: FqXkZaOG6SK
js/src/jsapi-tests/testGCAllocator.cpp
--- a/js/src/jsapi-tests/testGCAllocator.cpp
+++ b/js/src/jsapi-tests/testGCAllocator.cpp
@@ -342,17 +342,17 @@ mapMemory(size_t length)
         if (munmap(region, length))
             MOZ_RELEASE_ASSERT(errno == ENOMEM);
         return nullptr;
     }
     return region;
 #elif defined(__aarch64__)
     const uintptr_t start = UINT64_C(0x0000070000000000);
     const uintptr_t end   = UINT64_C(0x0000800000000000);
-    const uintptr_t step  = ChunkSize;
+    const uintptr_t step  = js::gc::ChunkSize;
     uintptr_t hint;
     void* region = MAP_FAILED;
     for (hint = start; region == MAP_FAILED && hint + length <= end; hint += step) {
         region = mmap((void*)hint, length, prot, flags, fd, offset);
         if (region != MAP_FAILED) {
             if ((uintptr_t(region) + (length - 1)) & 0xffff800000000000) {
                 if (munmap(region, length)) {
                     MOZ_RELEASE_ASSERT(errno == ENOMEM);