Changeset 75891 in webkit


Ignore:
Timestamp:
Jan 15, 2011 9:11:14 PM (13 years ago)
Author:
ggaren@apple.com
Message:

2011-01-15 Geoffrey Garen <ggaren@apple.com>

Reviewed by Oliver Hunt.

Rolled back in r75886.
https://bugs.webkit.org/show_bug.cgi?id=52527


r75886 broke the GTK Linux bot because Linux was -- quite surprisingly --
set up to use the constants for embedded devices.

  • jit/ExecutableAllocatorFixedVMPool.cpp: (JSC::maybeModifyVMPoolSize): Separated Linux constants from embedded constants.
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r75890 r75891  
     12011-01-15  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Rolled back in r75886.
     6        https://bugs.webkit.org/show_bug.cgi?id=52527
     7       
     8        r75886 broke the GTK Linux bot because Linux was -- quite surprisingly --
     9        set up to use the constants for embedded devices.
     10
     11        * jit/ExecutableAllocatorFixedVMPool.cpp:
     12        (JSC::maybeModifyVMPoolSize): Separated Linux constants from embedded
     13        constants.
     14
    1152011-01-15  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp

    r75890 r75891  
    4343#endif
    4444
    45 static const unsigned vmPoolSizeGeneric = 2u * 1024u * 1024u * 1024u; // 2Gb
    46 static const unsigned coalesceLimitGeneric = 16u * 1024u * 1024u; // 16Mb
    47 
    48 static const unsigned vmPoolSizeEmbedded = 32u * 1024u * 1024u; // 32Mb
     45static const unsigned vmPoolSizeOvercommit = 2u * 1024u * 1024u * 1024u; // 2Gb
     46static const unsigned coalesceLimitOvercommit = 16u * 1024u * 1024u; // 16Mb
     47
     48static const unsigned vmPoolSizeNoOvercommit = 32u * 1024u * 1024u; // 32Mb
     49static const unsigned coalesceLimitNoOvercommit = 4u * 1024u * 1024u; // 4Mb
     50
     51static const unsigned vmPoolSizeEmbedded = 16u * 1024u * 1024u; // 16Mb
    4952static const unsigned coalesceLimitEmbedded = 4u * 1024u * 1024u; // 4Mb
    5053
     
    5659// for the overcommit feature at runtime and re-assign the Generic
    5760// values if it's enabled.
    58 static unsigned vmPoolSize = vmPoolSizeGeneric; // 2Gb
    59 static unsigned coalesceLimit = coalesceLimitGeneric; // 16Mb
     61static unsigned vmPoolSize = vmPoolSizeOvercommit;
     62static unsigned coalesceLimit = coalesceLimitOvercommit;
     63#elif CPU(ARM)
     64static unsigned vmPoolSize = vmPoolSizeEmbedded;
     65static unsigned coalesceLimit = coalesceLimitEmbedded;
    6066#else
    61     // These limits are hopefully sensible on embedded platforms.
    62 static unsigned vmPoolSize = vmPoolSizeEmbedded; // 32Mb
    63 static unsigned coalesceLimit = coalesceLimitEmbedded; // 4Mb
     67static unsigned vmPoolSize = vmPoolSizeNoOvercommit;
     68static unsigned coalesceLimit = coalesceLimitNoOvercommit;
    6469#endif
    6570
     
    459464    fscanf(fp, "%u", &overcommit);
    460465    if (overcommit == 1) {
    461         vmPoolSize = vmPoolSizeGeneric; // 2Gb
    462         coalesceLimit = coalesceLimitGeneric; // 16Mb
     466        vmPoolSize = vmPoolSizeOvercommit;
     467        coalesceLimit = coalesceLimitOvercommit;
    463468    }
    464469
Note: See TracChangeset for help on using the changeset viewer.