mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
Clear the oracle on every GC.
This commit is contained in:
parent
e591e5e46b
commit
3b3457d061
@ -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
|
||||
|
@ -2149,6 +2149,12 @@ js_FinishJIT(JSTraceMonitor *tm)
|
||||
}
|
||||
}
|
||||
|
||||
extern void
|
||||
js_FlushJITOracle(JSContext* cx)
|
||||
{
|
||||
oracle.clear();
|
||||
}
|
||||
|
||||
extern void
|
||||
js_FlushJITCache(JSContext* cx)
|
||||
{
|
||||
|
@ -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___ */
|
||||
|
Loading…
Reference in New Issue
Block a user