mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Clear the oracle on every GC.
This commit is contained in:
parent
3a2b40e4c4
commit
fdb661bd5e
@ -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