Bug 224817

Summary: FullGCActivityCallback should use the percentage of pages uncompressed in RAM to determine deferral.
Product: WebKit Reporter: Keith Miller <keith_miller>
Component: New BugsAssignee: Keith Miller <keith_miller>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, ews-watchlist, fpizlo, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch for landing none

Description Keith Miller 2021-04-20 09:17:50 PDT
FullGCActivityCallback should use the percentage of pages uncompressed in RAM to determine deferral.
Comment 1 Keith Miller 2021-04-20 09:53:48 PDT
Created attachment 426561 [details]
Patch
Comment 2 Keith Miller 2021-04-20 10:18:08 PDT
Created attachment 426563 [details]
Patch
Comment 3 Keith Miller 2021-04-20 10:57:45 PDT
Created attachment 426569 [details]
Patch
Comment 4 Keith Miller 2021-04-20 11:17:40 PDT
Created attachment 426571 [details]
Patch
Comment 5 Darin Adler 2021-04-20 11:37:26 PDT
Comment on attachment 426571 [details]
Patch

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

> Source/WTF/ChangeLog:8
> +        Add a noexecpt flavor of FunctionTraits.

Why? Where is noexcept coming into play? Some std namespace function?
Comment 6 Keith Miller 2021-04-20 11:37:52 PDT
Created attachment 426575 [details]
Patch
Comment 7 Keith Miller 2021-04-20 11:40:30 PDT
Comment on attachment 426571 [details]
Patch

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

>> Source/WTF/ChangeLog:8
>> +        Add a noexecpt flavor of FunctionTraits.
> 
> Why? Where is noexcept coming into play? Some std namespace function?

mincore is marked noexcept on linux apparently, which is part of the reason I was getting build failures there.
Comment 8 Keith Miller 2021-04-20 11:58:40 PDT
Created attachment 426577 [details]
Patch
Comment 9 Darin Adler 2021-04-20 13:08:56 PDT
Comment on attachment 426577 [details]
Patch

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

> Source/WTF/ChangeLog:8
> +        Add a noexecpt flavor of FunctionTraits.

I suggest you fix the typo here and mention mincore as the reason.
Comment 10 Keith Miller 2021-04-20 13:09:49 PDT
Comment on attachment 426577 [details]
Patch

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

>> Source/WTF/ChangeLog:8
>> +        Add a noexecpt flavor of FunctionTraits.
> 
> I suggest you fix the typo here and mention mincore as the reason.

Sure, will do both before landing.
Comment 11 Keith Miller 2021-04-20 13:10:44 PDT
rdar://76425456
Comment 12 Keith Miller 2021-04-20 13:13:00 PDT
Comment on attachment 426577 [details]
Patch

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

In a follow up patch I'll make sure we account for PreciseAllocations too.

> Source/JavaScriptCore/heap/BlockDirectory.cpp:80
> +        // FIXME: We could cache this in bulk (e.g. 25 MB chunks) but we haven't seen any data that it actually matters.

Actually, this probably shouldn't be marked as a FIXME since we're not actually going to fix this until we say data saying it matters.
Comment 13 Keith Miller 2021-04-20 14:33:16 PDT
Created attachment 426593 [details]
Patch for landing
Comment 14 EWS 2021-04-20 15:42:13 PDT
Committed r276324 (236804@main): <https://commits.webkit.org/236804@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426593 [details].