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 122634 b35cf8a9852f
parent 122633 788c24847525
child 122635 cd6989e8a9e0
push id23411
push userjcoppeard@mozilla.com
push date2013-02-22 14:31 +0000
treeherdermozilla-inbound@b35cf8a9852f [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;
 }