Changeset 273779 in webkit


Ignore:
Timestamp:
Mar 2, 2021 6:02:22 PM (2 years ago)
Author:
ysuzuki@apple.com
Message:

Flaky JSC test: stress/shared-array-buffer-sort-while-different-thread-is-modifying.js.default
https://bugs.webkit.org/show_bug.cgi?id=221129

Reviewed by Saam Barati.

Speculative fix for JSC shell's termination handling change.

  • jsc.cpp:

(CommandLine::CommandLine):
(jscmain):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r273777 r273779  
     12021-03-02  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Flaky JSC test: stress/shared-array-buffer-sort-while-different-thread-is-modifying.js.default
     4        https://bugs.webkit.org/show_bug.cgi?id=221129
     5
     6        Reviewed by Saam Barati.
     7
     8        Speculative fix for JSC shell's termination handling change.
     9
     10        * jsc.cpp:
     11        (CommandLine::CommandLine):
     12        (jscmain):
     13
    1142021-03-02  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/Source/JavaScriptCore/jsc.cpp

    r273641 r273779  
    414414
    415415    enum CommandLineForWorkersTag { CommandLineForWorkers };
    416     CommandLine(CommandLineForWorkersTag)
    417     {
    418     }
     416    explicit CommandLine(CommandLineForWorkersTag);
    419417
    420418    Vector<Script> m_scripts;
     
    437435    void parseArguments(int, char**);
    438436};
     437static LazyNeverDestroyed<CommandLine> mainCommandLine;
    439438
    440439static const char interactivePrompt[] = ">>> ";
     
    33823381}
    33833382
     3383CommandLine::CommandLine(CommandLineForWorkersTag)
     3384    : m_treatWatchdogExceptionAsSuccess(mainCommandLine->m_treatWatchdogExceptionAsSuccess)
     3385{
     3386}
     3387
    33843388template<typename Func>
    33853389int runJSC(const CommandLine& options, bool isWorker, const Func& func)
     
    35033507    // Note that the options parsing can affect VM creation, and thus
    35043508    // comes first.
    3505     CommandLine options(argc, argv);
     3509    mainCommandLine.construct(argc, argv);
    35063510
    35073511    {
    35083512        Options::AllowUnfinalizedAccessScope scope;
    35093513        processConfigFile(Options::configFile(), "jsc");
    3510         if (options.m_dump)
     3514        if (mainCommandLine->m_dump)
    35113515            Options::dumpGeneratedBytecodes() = true;
    35123516    }
     
    35753579
    35763580    int result = runJSC(
    3577         options, false,
     3581        mainCommandLine.get(), false,
    35783582        [&] (VM& vm, GlobalObject* globalObject, bool& success) {
    35793583            UNUSED_PARAM(vm);
     
    35813585            vm.setOnEachMicrotaskTick(WTFMove(onEachMicrotaskTick));
    35823586#endif
    3583             runWithOptions(globalObject, options, success);
     3587            runWithOptions(globalObject, mainCommandLine.get(), success);
    35843588        });
    35853589
    35863590    printSuperSamplerState();
    35873591
    3588     if (options.m_dumpMemoryFootprint) {
     3592    if (mainCommandLine->m_dumpMemoryFootprint) {
    35893593        MemoryFootprint footprint = MemoryFootprint::now();
    35903594
Note: See TracChangeset for help on using the changeset viewer.