-
Notifications
You must be signed in to change notification settings - Fork 143
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
[2.38] Taking some IOS GC branches for WPE as well #1422
base: wpe-2.38
Are you sure you want to change the base?
[2.38] Taking some IOS GC branches for WPE as well #1422
Conversation
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.
Please, we have here 4 changes that should go in 4 separate commits. Well, 3, as the change in the MemoryPressureHandler fractions should not be there. Please, remove the fractions change and split the PR in 3 different commits.
@@ -40,7 +40,7 @@ namespace WTF { | |||
|
|||
WTF_EXPORT_PRIVATE bool MemoryPressureHandler::ReliefLogger::s_loggingEnabled = false; | |||
|
|||
#if PLATFORM(IOS_FAMILY) | |||
#if PLATFORM(IOS_FAMILY) || PLATFORM(WPE) |
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.
We cannot change the default values of the fractions, cause this affects all of the devices. As I told you in previous PRs, there's API to change these values for your platform only, please use it.
The aim is to make the GC more reliable on low-memory platforms. In FullGCActivityCallback, the change is to do not bail out of GC early.
The aim is to make the GC more reliable on low-memory platforms. In MemoryRelease, the change is to request immediate GC in releaseCriticalMemory.
The aim is to make the GC more reliable on low-memory platforms. In WorkerGlobalScope::deleteJSCodeAndGC the change is to collect even if called with 'Synchronous::No'
7cd0bde
to
8c1c5e5
Compare
sure - I've just updated the PR |
@modeveci , this is technically fine for merge, but it's adding changes to how the memory release is done and may have an impact in performance, so it should be verified on your side first. |
Thanks @magomez, we'll investigate if there are any performance issues. |
The aim is to make the GC more reliable on low-memory platforms. IOS branches applied: