Bug 843626 GC: Rooting analysis failures in parallel array jittests r=terrence
authorJon Coppeard <jcoppeard@mozilla.com>
Thu, 21 Feb 2013 15:50:50 +0000
changeset 122646 b35cf8a9852f
parent 122645 788c24847525
child 122647 cd6989e8a9e0
push id24356
push usergszorc@mozilla.com
push date2013-02-24 01:00 +0000
treeherdermozilla-central@195e706140d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs843626
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 843626 GC: Rooting analysis failures in parallel array jittests r=terrence
js/src/builtin/ParallelArray.cpp
--- a/js/src/builtin/ParallelArray.cpp
+++ b/js/src/builtin/ParallelArray.cpp
@@ -1602,17 +1602,17 @@ ParallelArrayObject::get(JSContext *cx, 
     return obj->getParallelArrayElement(cx, iv, args.rval());
 }
 
 bool
 ParallelArrayObject::dimensionsGetter(JSContext *cx, CallArgs args)
 {
     RootedObject dimArray(cx, as(&args.thisv().toObject())->dimensionArray());
     RootedObject copy(cx, NewDenseCopiedArray(cx, dimArray->getDenseInitializedLength(),
-                                              dimArray->getDenseElements()));
+                                              dimArray, 0));
     if (!copy)
         return false;
     // Reuse the existing dimension array's type.
     copy->setType(dimArray->type());
     args.rval().setObject(*copy);
     return true;
 }