WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
201555
Revert to pre-
r243144
scavenging behavior for macOS
https://bugs.webkit.org/show_bug.cgi?id=201555
Summary
Revert to pre-r243144 scavenging behavior for macOS
Michael Saboff
Reported
2019-09-06 13:23:24 PDT
Various tests seem to indicate that the code before
r243144
is actually better for Macs.
Attachments
Patch
(22.92 KB, patch)
2019-09-06 13:27 PDT
,
Michael Saboff
no flags
Details
Formatted Diff
Diff
Updated patch with "Scavenger::verbose" flag set to false
(22.74 KB, patch)
2019-09-06 13:42 PDT
,
Michael Saboff
saam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2019-09-06 13:24:04 PDT
<
rdar://problem/53995557
>
Michael Saboff
Comment 2
2019-09-06 13:27:23 PDT
Created
attachment 378225
[details]
Patch
Michael Saboff
Comment 3
2019-09-06 13:42:19 PDT
Created
attachment 378226
[details]
Updated patch with "Scavenger::verbose" flag set to false
Saam Barati
Comment 4
2019-09-06 14:05:45 PDT
(In reply to Michael Saboff from
comment #0
)
> Various tests seem to indicate that the code before
r243144
is actually > better for Macs.
Which tests?
Saam Barati
Comment 5
2019-09-06 14:08:42 PDT
Comment on
attachment 378226
[details]
Updated patch with "Scavenger::verbose" flag set to false View in context:
https://bugs.webkit.org/attachment.cgi?id=378226&action=review
Why so much special casing on platform(MAC) vs not? Was that really in the original code?
> Source/bmalloc/ChangeLog:7 > +
you should say what and why
> Source/bmalloc/bmalloc/LargeRange.h:170 > +#if !BPLATFORM(MAC) > + , mergedUsedSinceLastScavenge > +#endif
do we still use this bit? Why just on iOS? Seems weird
> Source/bmalloc/bmalloc/Scavenger.cpp:226 > +#if BPLATFORM(MAC) > + PerProcess<PerHeapKind<Heap>>::get()->at(i).scavenge(lock, decommitter); > +#else > PerProcess<PerHeapKind<Heap>>::get()->at(i).scavenge(lock, decommitter, deferredDecommits); > +#endif
what's different about these two code paths per platform?
Michael Saboff
Comment 6
2019-09-06 15:25:55 PDT
Comment on
attachment 378226
[details]
Updated patch with "Scavenger::verbose" flag set to false View in context:
https://bugs.webkit.org/attachment.cgi?id=378226&action=review
>> Source/bmalloc/ChangeLog:7 >> + > > you should say what and why
I'll add "The change in
r243144
regressed internal power metrics for some Mac models."
>> Source/bmalloc/bmalloc/LargeRange.h:170 >> +#endif > > do we still use this bit? Why just on iOS? Seems weird
The used bits are integral to the current code and required for the non-Mac code paths.
>> Source/bmalloc/bmalloc/Scavenger.cpp:226 >> +#endif > > what's different about these two code paths per platform?
The extra "deferredDecommits" reference parameter, which is used in the non-Mac code below.
Saam Barati
Comment 7
2019-09-06 16:20:59 PDT
Comment on
attachment 378226
[details]
Updated patch with "Scavenger::verbose" flag set to false r=me
Michael Saboff
Comment 8
2019-09-09 15:38:43 PDT
Committed
r249670
: <
https://trac.webkit.org/changeset/249670
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug