Changeset 265154 in webkit


Ignore:
Timestamp:
Jul 31, 2020 12:24:08 PM (4 years ago)
Author:
sbarati@apple.com
Message:

Re-enable NO_SMT on Catalina
https://bugs.webkit.org/show_bug.cgi?id=215024

Reviewed by Alexey Proskuryakov.

  • runtime/Options.cpp:

(JSC::defaultTCSMValue):

  • runtime/OptionsList.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r265151 r265154  
     12020-07-31  Saam Barati  <sbarati@apple.com>
     2
     3        Re-enable NO_SMT on Catalina
     4        https://bugs.webkit.org/show_bug.cgi?id=215024
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * runtime/Options.cpp:
     9        (JSC::defaultTCSMValue):
     10        * runtime/OptionsList.h:
     11
    1122020-07-31  Saam Barati  <sbarati@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r263380 r265154  
    229229{
    230230    return computeNumberOfWorkerThreads(maxNumberOfGCMarkers);
     231}
     232
     233static bool defaultTCSMValue()
     234{
     235#if CPU(X86_64) && ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000) || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED < 140000))
     236    return true;
     237#else
     238    return false;
     239#endif
    231240}
    232241
  • trunk/Source/JavaScriptCore/runtime/OptionsList.h

    r264688 r265154  
    7777
    7878#define FOR_EACH_JSC_OPTION(v)                                          \
    79     v(Bool, useKernTCSM, false, Normal, "Note: this needs to go before other options since they depend on this value.") \
     79    v(Bool, useKernTCSM, defaultTCSMValue(), Normal, "Note: this needs to go before other options since they depend on this value.") \
    8080    v(Bool, validateOptions, false, Normal, "crashes if mis-typed JSC options were passed to the VM") \
    8181    v(Unsigned, dumpOptions, 0, Normal, "dumps JSC options (0 = None, 1 = Overridden only, 2 = All, 3 = Verbose)") \
Note: See TracChangeset for help on using the changeset viewer.