From a409753f7a65f1a77ab335098ad0ca927c311546 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Mon, 9 Jul 2012 09:58:22 -0600 Subject: [PATCH] Fix --enable-root-analysis builds break, no bug. r=billm --- js/src/gc/Root.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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