Backed out changeset 6eef4ea21123 -- it was a temporary diagnostic.
authorDavid Mandelin <dmandelin@mozilla.com>
Mon, 15 Nov 2010 13:15:59 -0800
changeset 57527 cbd8dd229b36964163ea4a8e8e804526e2cb2c10
parent 57126 6eef4ea21123a948b507210f555faddfff1a8cfb
child 57528 515b7489c559b2a0ce257145e7ff1d628351aeea
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
backs out6eef4ea21123a948b507210f555faddfff1a8cfb
Backed out changeset 6eef4ea21123 -- it was a temporary diagnostic.
js/src/jsobj.cpp
--- a/js/src/jsobj.cpp
+++ b/js/src/jsobj.cpp
@@ -3758,26 +3758,19 @@ JSObject::growSlots(JSContext *cx, size_
         JS_ReportOutOfMemory(cx);
         return false;
     }
 
     /* If nothing was allocated yet, treat it as initial allocation. */
     if (!hasSlotsArray())
         return allocSlots(cx, actualCapacity);
 
-    Value *oldslots = slots;
     Value *tmpslots = (Value*) cx->realloc(slots, actualCapacity * sizeof(Value));
     if (!tmpslots)
         return false;    /* Leave dslots as its old size. */
-    // If slots has changed, that means some other thread changed it while we
-    // were realloc'ing, which is very bad.
-#define JS_CRASH(addr) *(int *) addr = 0;
-    if (oldslots != slots)
-        JS_CRASH(0xf0);
-#undef JS_CRASH
     slots = tmpslots;
     capacity = actualCapacity;
 
     /* Initialize the additional slots we added. */
     ClearValueRange(slots + oldcap, actualCapacity - oldcap, isDenseArray());
     return true;
 }