Bug 987285 - 'Let nsBaseHashtable and subclasses call MarkImmutable'. r=bsmedberg.
authorBen Turner <bent.mozilla@gmail.com>
Thu, 27 Mar 2014 11:09:53 -0400
changeset 175643 8715ca8dd2317b02e90ab3699cb5acc34f0f9ab2
parent 175642 d5973e179f12cc8a35f9b1489411cc646005e407
child 175644 03513b312aa5a8ea3aec1dc7deb1da7aa861bc55
push id26496
push userkwierso@gmail.com
push dateFri, 28 Mar 2014 02:28:34 +0000
treeherdermozilla-central@3c09159e01da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs987285
milestone31.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 987285 - 'Let nsBaseHashtable and subclasses call MarkImmutable'. r=bsmedberg.
xpcom/glue/nsBaseHashtable.h
--- a/xpcom/glue/nsBaseHashtable.h
+++ b/xpcom/glue/nsBaseHashtable.h
@@ -266,16 +266,20 @@ public:
       s_SizeOfArgs args = { sizeOfEntryExcludingThis, userArg };
       return PL_DHashTableSizeOfExcludingThis(&this->mTable, s_SizeOfStub,
                                               mallocSizeOf, &args);
     }
     return PL_DHashTableSizeOfExcludingThis(&this->mTable, nullptr,
                                             mallocSizeOf);
   }
 
+#ifdef DEBUG
+  using nsTHashtable<EntryType>::MarkImmutable;
+#endif
+
 protected:
   /**
    * used internally during EnumerateRead.  Allocated on the stack.
    * @param func the enumerator passed to EnumerateRead
    * @param userArg the userArg passed to EnumerateRead
    */
   struct s_EnumReadArgs
   {