Bug 789552 - Zero the exact rooting list heads in the JSRuntime; r=sfink

This is followup to Bug 786136.

--HG--
extra : rebase_source : 01744e01cb3dfd635dad2a07817c163856602eaa
This commit is contained in:
Terrence Cole 2012-09-07 15:23:30 -07:00
parent 4baf189097
commit 6a442768f1

View File

@ -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;