Bug 1380778 - Fix review comment I missed r=sfink
authorJon Coppeard <jcoppeard@mozilla.com>
Mon, 17 Jul 2017 11:01:19 +0100
changeset 369255 fbe95017106a4a5ce6b2cca64c535b4885aa1938
parent 369254 d0c73b22611c17a86a26c934077f542df3b375cf
child 369256 8df92cb52eb45d99cb3239150879de98bf4c4015
push id46631
push userkwierso@gmail.com
push dateTue, 18 Jul 2017 00:38:28 +0000
treeherderautoland@216a5bf264b2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1380778
milestone56.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 1380778 - Fix review comment I missed r=sfink
js/src/vm/Shape-inl.h
--- a/js/src/vm/Shape-inl.h
+++ b/js/src/vm/Shape-inl.h
@@ -153,17 +153,17 @@ GetterSetterWriteBarrierPost(AccessorSha
         AutoEnterOOMUnsafeRegion oomUnsafe;
         if (!nurseryShapes.append(shape))
             oomUnsafe.crash("GetterSetterWriteBarrierPost");
     }
 
     auto& storeBuffer = shape->runtimeFromActiveCooperatingThread()->gc.storeBuffer();
     if (nurseryShapes.length() == 1) {
         storeBuffer.putGeneric(NurseryShapesRef(shape->zone()));
-    } if (nurseryShapes.length() == MaxShapeVectorLength) {
+    } else if (nurseryShapes.length() == MaxShapeVectorLength) {
         storeBuffer.setAboutToOverflow(JS::gcreason::FULL_SHAPE_BUFFER);
     }
 }
 
 inline
 AccessorShape::AccessorShape(const StackShape& other, uint32_t nfixed)
   : Shape(other, nfixed),
     rawGetter(other.rawGetter),