Bug 912299 Followup - Update RefCounted specializations in ElfLoader.h. r=me
☠☠ backed out by 98656b5a9e6b ☠ ☠
authorSeth Fowler <seth@mozilla.com>
Thu, 05 Sep 2013 21:17:15 -0700
changeset 145858 39bcc4b7efc8e3a0b36508e501750f1859dd4426
parent 145857 5eb75e2bab0a4863f9ea0ab950bce1f08f7ade38
child 145859 c6412aa5cc28aefdc926a878dde03493f59efceb
push id2524
push useremorley@mozilla.com
push dateFri, 06 Sep 2013 15:26:16 +0000
treeherderfx-team@802f4d5b7106 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs912299
milestone26.0a1
Bug 912299 Followup - Update RefCounted specializations in ElfLoader.h. r=me
mozglue/linker/ElfLoader.h
--- a/mozglue/linker/ElfLoader.h
+++ b/mozglue/linker/ElfLoader.h
@@ -65,17 +65,17 @@ IsSignalHandlingBroken();
  * RefCounted<LibHandle>::Release to support some reentrancy. See further
  * below.
  */
 class LibHandle;
 
 namespace mozilla {
 namespace detail {
 
-template <> inline void RefCounted<LibHandle, AtomicRefCount>::Release();
+template <> inline void RefCounted<LibHandle, AtomicRefCount>::Release() const;
 
 template <> inline RefCounted<LibHandle, AtomicRefCount>::~RefCounted()
 {
   MOZ_ASSERT(refCnt == 0x7fffdead);
 }
 
 } /* namespace detail */
 } /* namespace mozilla */
@@ -210,17 +210,17 @@ private:
  * to 1 on normal builds, and 0x7fffdead on debug builds so that the LibHandle
  * can still be referenced while the destructor is executing. The refCnt is
  * allowed to grow > 0x7fffdead, but not to decrease under that value, which
  * would mean too many Releases from within the destructor.
  */
 namespace mozilla {
 namespace detail {
 
-template <> inline void RefCounted<LibHandle, AtomicRefCount>::Release() {
+template <> inline void RefCounted<LibHandle, AtomicRefCount>::Release() const {
 #ifdef DEBUG
   if (refCnt > 0x7fff0000)
     MOZ_ASSERT(refCnt > 0x7fffdead);
 #endif
   MOZ_ASSERT(refCnt > 0);
   if (refCnt > 0) {
     if (0 == --refCnt) {
 #ifdef DEBUG