diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index 90f0c1f7ff0c..aa42f0f457d3 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -1316,6 +1316,7 @@ ArenaLists::finalizeLater(JSContext *cx, AllocKind thingKind) #endif } +#ifdef JS_THREADSAFE /*static*/ void ArenaLists::backgroundFinalize(JSContext *cx, ArenaHeader *listHead) { @@ -1356,6 +1357,7 @@ ArenaLists::backgroundFinalize(JSContext *cx, ArenaHeader *listHead) lists->backgroundFinalizeState[thingKind] = BFS_DONE; } } +#endif /* JS_THREADSAFE */ void ArenaLists::finalizeObjects(JSContext *cx) diff --git a/js/src/jsgc.h b/js/src/jsgc.h index 37727111e2f2..40168a38e6e6 100644 --- a/js/src/jsgc.h +++ b/js/src/jsgc.h @@ -1088,13 +1088,13 @@ struct ArenaLists { #ifdef JS_THREADSAFE static void backgroundFinalize(JSContext *cx, ArenaHeader *listHead); +#endif private: inline void finalizeNow(JSContext *cx, AllocKind thingKind); inline void finalizeLater(JSContext *cx, AllocKind thingKind); inline void *allocateFromArena(JSContext *cx, AllocKind thingKind); -#endif }; /*