Bug 206401

Summary: [JSC] Eagerly purging JIT code when VM::deleteAllCode is executed
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: NEW    
Severity: Normal CC: saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yusuke Suzuki
Reported 2020-01-17 00:02:43 PST
Is it worth trying?
Attachments
Saam Barati
Comment 1 2020-01-17 00:08:49 PST
What do you mean by purging?
Yusuke Suzuki
Comment 2 2020-01-17 00:09:36 PST
(In reply to Saam Barati from comment #1) > What do you mean by purging? Destroying JITData / Baseline JIT code eagerly before collection and incremental sweeping happens.
Saam Barati
Comment 3 2020-01-17 00:11:35 PST
(In reply to Yusuke Suzuki from comment #2) > (In reply to Saam Barati from comment #1) > > What do you mean by purging? > > Destroying JITData / Baseline JIT code eagerly before collection and > incremental sweeping happens. Sounds reasonable
Saam Barati
Comment 4 2020-01-17 00:12:17 PST
Why do we need to do it before collection? Maybe we can make it hook into the baseline throw away code I’m going to write?
Yusuke Suzuki
Comment 5 2020-01-17 00:37:40 PST
(In reply to Saam Barati from comment #4) > Why do we need to do it before collection? Maybe we can make it hook into > the baseline throw away code I’m going to write? To quickly shrink the heap if memory-warning is emitted (memory-warning is emitted, then we should shrink size quickly. We are destroying code a bit indirectly, which means, clearing reference, and scheduling a GC. But we can gain memory more directly without waiting later GC & incremental sweeping.)
Note You need to log in before you can comment on or make changes to this bug.