Backed out changeset 6eef4ea21123 -- it was a temporary diagnostic.

This commit is contained in:
David Mandelin 2010-11-15 13:15:59 -08:00
Родитель 466f4c76a1
Коммит 5c42e29bf9
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -3763,16 +3763,9 @@ JSObject::growSlots(JSContext *cx, size_t newcap)
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;