From 6a442768f13429fa2f85b02781e43c2e31dbad4a Mon Sep 17 00:00:00 2001 From: Terrence Cole Date: Fri, 7 Sep 2012 15:23:30 -0700 Subject: [PATCH] Bug 789552 - Zero the exact rooting list heads in the JSRuntime; r=sfink This is followup to Bug 786136. --HG-- extra : rebase_source : 01744e01cb3dfd635dad2a07817c163856602eaa --- js/src/jsapi.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 35d8ab63107..c1dc69649c5 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -906,6 +906,10 @@ JSRuntime::init(uint32_t maxbytes) JMCheckLogging(); #endif +#if defined(JSGC_ROOT_ANALYSIS) || defined(JSGC_USE_EXACT_ROOTING) + PodArrayZero(thingGCRooters); +#endif + if (!js_InitGC(this, maxbytes)) return false;