Clear the oracle on every GC.

This commit is contained in:
Andreas Gal 2008-08-20 16:01:56 -07:00
parent 3a2b40e4c4
commit fdb661bd5e
3 changed files with 10 additions and 0 deletions

View File

@ -3235,6 +3235,7 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind)
js_FlushPropertyCache(cx);
#ifdef JS_TRACER
js_FlushJITCache(cx);
js_FlushJITOracle(cx);
#endif
#ifdef JS_THREADSAFE

View File

@ -2149,6 +2149,12 @@ js_FinishJIT(JSTraceMonitor *tm)
}
}
extern void
js_FlushJITOracle(JSContext* cx)
{
oracle.clear();
}
extern void
js_FlushJITCache(JSContext* cx)
{

View File

@ -355,6 +355,9 @@ js_FinishJIT(JSTraceMonitor *tm);
extern void
js_FlushJITCache(JSContext* cx);
extern void
js_FlushJITOracle(JSContext* cx);
#endif /* defined JS_TRACER */
#endif /* jstracer_h___ */