Changeset 245096 in webkit


Ignore:
Timestamp:
May 8, 2019 11:37:11 PM (5 years ago)
Author:
zandobersek@gmail.com
Message:

[GLib] Rework WPE RunLoopSourcePriority values
https://bugs.webkit.org/show_bug.cgi?id=197167

Reviewed by Carlos Garcia Campos.

The GLib priorities for the WPE port were initially aligned on the -70
value, theory being that this would help avoid any default-priority
GSources spawned in different dependency libraries affecting our
scheduling. Today it seems that extra caution might not be really
necessary.

This change aligns the base priority value with GLib's default priority
value of 0. We maintain the relativity of priority values by effectively
increasing each priority by 70.

  • wtf/glib/RunLoopSourcePriority.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245075 r245096  
     12019-05-08  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GLib] Rework WPE RunLoopSourcePriority values
     4        https://bugs.webkit.org/show_bug.cgi?id=197167
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        The GLib priorities for the WPE port were initially aligned on the -70
     9        value, theory being that this would help avoid any default-priority
     10        GSources spawned in different dependency libraries affecting our
     11        scheduling. Today it seems that extra caution might not be really
     12        necessary.
     13
     14        This change aligns the base priority value with GLib's default priority
     15        value of 0. We maintain the relativity of priority values by effectively
     16        increasing each priority by 70.
     17
     18        * wtf/glib/RunLoopSourcePriority.h:
     19
    1202019-05-08  Alex Christensen  <achristensen@webkit.org>
    221
  • trunk/Source/WTF/wtf/glib/RunLoopSourcePriority.h

    r244108 r245096  
    8686
    8787enum RunLoopSourcePriority {
    88     RunLoopDispatcher = -70,
    89     RunLoopTimer = -70,
     88    RunLoopDispatcher = 0,
     89    RunLoopTimer = 0,
    9090
    91     MainThreadDispatcherTimer = -60,
     91    MainThreadDispatcherTimer = 10,
    9292
    93     MemoryPressureHandlerTimer = -80,
     93    MemoryPressureHandlerTimer = -10,
    9494
    95     JavascriptTimer = -60,
    96     MainThreadSharedTimer = -60,
     95    JavascriptTimer = 10,
     96    MainThreadSharedTimer = 10,
    9797
    98     LayerFlushTimer = -70,
    99     DisplayRefreshMonitorTimer = -70,
     98    LayerFlushTimer = 0,
     99    DisplayRefreshMonitorTimer = 0,
    100100
    101     CompositingThreadUpdateTimer = -70,
     101    CompositingThreadUpdateTimer = 0,
    102102
    103     ReleaseUnusedResourcesTimer = -70,
     103    ReleaseUnusedResourcesTimer = 0,
    104104
    105     AsyncIONetwork = -60,
    106     DiskCacheRead = -60,
    107     DiskCacheWrite = -50
     105    AsyncIONetwork = 10,
     106    DiskCacheRead = 10,
     107    DiskCacheWrite = 20
    108108};
    109109
Note: See TracChangeset for help on using the changeset viewer.