Bug 850954 - Allow implicit copying of RelocatableValue; r=billm
authorTerrence Cole <terrence@mozilla.com>
Thu, 21 Mar 2013 13:58:18 -0700
changeset 136584 2a77dba77cc21bea6b9b19f797dbd43b8f0da98d
parent 136583 67cb3a9a4ad1f7c6aa4907cbf4de364ce4664dce
child 136585 021d69679f43d4a474d61868720d838ccab9c2f5
push id2452
push userlsblakk@mozilla.com
push dateMon, 13 May 2013 16:59:38 +0000
treeherdermozilla-beta@d4b152d29d8d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs850954
milestone22.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 850954 - Allow implicit copying of RelocatableValue; r=billm
js/src/gc/Barrier.h
--- a/js/src/gc/Barrier.h
+++ b/js/src/gc/Barrier.h
@@ -250,17 +250,17 @@ template <class T>
 class RelocatablePtr : public EncapsulatedPtr<T>
 {
   public:
     RelocatablePtr() : EncapsulatedPtr<T>(NULL) {}
     explicit RelocatablePtr(T *v) : EncapsulatedPtr<T>(v) {
         if (v)
             post();
     }
-    explicit RelocatablePtr(const RelocatablePtr<T> &v) : EncapsulatedPtr<T>(v) {
+    RelocatablePtr(const RelocatablePtr<T> &v) : EncapsulatedPtr<T>(v) {
         if (this->value)
             post();
     }
 
     ~RelocatablePtr() {
         if (this->value)
             relocate(this->value->runtime());
     }