Backed out changeset 814254bd1eb7 (bug 1421345) for bustage at dist/include/mozilla/ArenaAllocator.h:180:7: 'canary' was not declared in this scope. a=backout
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 15 Jan 2018 14:03:07 +0200
changeset 445675 fae7c41d40fd8ddb4d6d0ade34af7c75fef0e4d5
parent 445674 814254bd1eb76533621eea0700d0182aa3121350
child 445676 5096a6c3aefd858af15facdd31b53d8f57baf061
push id1625
push userarchaeopteryx@coole-files.de
push dateMon, 15 Jan 2018 12:03:35 +0000
treeherdermozilla-release@fae7c41d40fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1421345
milestone58.0
backs out814254bd1eb76533621eea0700d0182aa3121350
Backed out changeset 814254bd1eb7 (bug 1421345) for bustage at dist/include/mozilla/ArenaAllocator.h:180:7: 'canary' was not declared in this scope. a=backout
xpcom/ds/ArenaAllocator.h
--- a/xpcom/ds/ArenaAllocator.h
+++ b/xpcom/ds/ArenaAllocator.h
@@ -170,19 +170,17 @@ private:
 
     /**
      * Allocates a chunk of memory out of the arena and advances the offset.
      */
     void* Allocate(size_t aSize)
     {
       MOZ_ASSERT(aSize <= Available());
       char* p = reinterpret_cast<char*>(header.offset);
-      MOZ_RELEASE_ASSERT(p);
       header.offset += aSize;
-      canary.Check();
       MOZ_MAKE_MEM_UNDEFINED(p, aSize);
       return p;
     }
 
     /**
      * Calculates the amount of space available for allocation in this chunk.
      */
     size_t Available() const {