Bug 224706 - [bmalloc] Enable Adaptive Scavenger for Mac
Summary: [bmalloc] Enable Adaptive Scavenger for Mac
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-16 17:30 PDT by Michael Saboff
Modified: 2021-04-19 11:52 PDT (History)
3 users (show)

See Also:


Attachments
Patch (26.20 KB, patch)
2021-04-19 09:12 PDT, Michael Saboff
fpizlo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2021-04-16 17:30:38 PDT
The adaptive scavenger landed in change set r243144, but was later disabled for macOS in r249670 due to a regression found during power testing.  It is likely that we can arrive at a different set of adaptive scavenger parameters that provide memory reduction without impacting performance.
Comment 1 Michael Saboff 2021-04-16 17:31:44 PDT
<rdar://71987791>
Comment 2 Radar WebKit Bug Importer 2021-04-16 17:31:52 PDT
<rdar://problem/76786339>
Comment 3 Michael Saboff 2021-04-19 09:12:27 PDT
Created attachment 426430 [details]
Patch
Comment 4 Saam Barati 2021-04-19 09:32:19 PDT
Comment on attachment 426430 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=426430&action=review

> Source/bmalloc/bmalloc/Scavenger.h:113
> +#if BPLATFORM(MAC)

maybe also worth it for catalyst?
Comment 5 Michael Saboff 2021-04-19 11:13:12 PDT
(In reply to Saam Barati from comment #4)
> Comment on attachment 426430 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=426430&action=review
> 
> > Source/bmalloc/bmalloc/Scavenger.h:113
> > +#if BPLATFORM(MAC)
> 
> maybe also worth it for catalyst?

One could probably argue good reasons for either the macOS semantics or the every other platform semantics.  I'd like to defer this to a future patch after appropriate testing of the two sets of parameters.
Comment 6 Michael Saboff 2021-04-19 11:52:29 PDT
Committed r276266 (236748@main): <https://commits.webkit.org/236748@main>