-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make memory pressure handler call deleteAllCode with PreventCollectionAndDeleteAllCode #10847
Make memory pressure handler call deleteAllCode with PreventCollectionAndDeleteAllCode #10847
Conversation
EWS run on previous version of this PR (hash 395436d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me. This is always run under VM::whenIdle. So discarding CodeBlock is safe.
395436d
to
ebcd2f5
Compare
EWS run on current version of this PR (hash ebcd2f5) |
β¦nAndDeleteAllCode https://bugs.webkit.org/show_bug.cgi?id=253133 <rdar://problem/106065668> Reviewed by Mark Lam and Yusuke Suzuki. The memory pressure handler currently calls GCController::deleteAllCode(DeleteAllCodeIfNotCollecting), but it turns out we hit the case of a collection being in progress moderately often. We already do a bunch of blocky work here to get memory usage down, so let's change this to PreventCollectionAndDeleteAllCode to guarantee we can drop all JIT code. * Source/WebCore/page/MemoryRelease.cpp: (WebCore::releaseCriticalMemory): Canonical link: https://commits.webkit.org/261061@main
ebcd2f5
to
69098eb
Compare
Committed 261061@main (69098eb): https://commits.webkit.org/261061@main Reviewed commits have been landed. Closing PR #10847 and removing active labels. |
69098eb
ebcd2f5
π wincairoπ§ͺ ios-wk2π§ͺ api-macπ§ͺ gtk-wk2π§ͺ api-iosπ§ͺ api-gtkπ§ͺ mac-AS-debug-wk2