diff --git a/js/src/gc/Root.h b/js/src/gc/Root.h index b6b9b3592ec..c27ae3be373 100644 --- a/js/src/gc/Root.h +++ b/js/src/gc/Root.h @@ -383,6 +383,11 @@ public: } }; +#if defined(DEBUG) && defined(JS_GC_ZEAL) && defined(JSGC_ROOT_ANALYSIS) && !defined(JS_THREADSAFE) +extern void +CheckStackRoots(JSContext *cx); +#endif + /* * Hook for dynamic root analysis. Checks the native stack and poisons * references to GC things which have not been rooted. @@ -392,7 +397,6 @@ inline void MaybeCheckStackRoots(JSContext *cx) #ifdef DEBUG JS_ASSERT(!IsRootingUnnecessaryForContext(cx)); # if defined(JS_GC_ZEAL) && defined(JSGC_ROOT_ANALYSIS) && !defined(JS_THREADSAFE) - void CheckStackRoots(JSContext *cx); CheckStackRoots(cx); # endif #endif