Changeset 273779 in webkit
- Timestamp:
- Mar 2, 2021 6:02:22 PM (2 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r273777 r273779 1 2021-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 1 14 2021-03-02 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/Source/JavaScriptCore/jsc.cpp
r273641 r273779 414 414 415 415 enum CommandLineForWorkersTag { CommandLineForWorkers }; 416 CommandLine(CommandLineForWorkersTag) 417 { 418 } 416 explicit CommandLine(CommandLineForWorkersTag); 419 417 420 418 Vector<Script> m_scripts; … … 437 435 void parseArguments(int, char**); 438 436 }; 437 static LazyNeverDestroyed<CommandLine> mainCommandLine; 439 438 440 439 static const char interactivePrompt[] = ">>> "; … … 3382 3381 } 3383 3382 3383 CommandLine::CommandLine(CommandLineForWorkersTag) 3384 : m_treatWatchdogExceptionAsSuccess(mainCommandLine->m_treatWatchdogExceptionAsSuccess) 3385 { 3386 } 3387 3384 3388 template<typename Func> 3385 3389 int runJSC(const CommandLine& options, bool isWorker, const Func& func) … … 3503 3507 // Note that the options parsing can affect VM creation, and thus 3504 3508 // comes first. 3505 CommandLine options(argc, argv);3509 mainCommandLine.construct(argc, argv); 3506 3510 3507 3511 { 3508 3512 Options::AllowUnfinalizedAccessScope scope; 3509 3513 processConfigFile(Options::configFile(), "jsc"); 3510 if ( options.m_dump)3514 if (mainCommandLine->m_dump) 3511 3515 Options::dumpGeneratedBytecodes() = true; 3512 3516 } … … 3575 3579 3576 3580 int result = runJSC( 3577 options, false,3581 mainCommandLine.get(), false, 3578 3582 [&] (VM& vm, GlobalObject* globalObject, bool& success) { 3579 3583 UNUSED_PARAM(vm); … … 3581 3585 vm.setOnEachMicrotaskTick(WTFMove(onEachMicrotaskTick)); 3582 3586 #endif 3583 runWithOptions(globalObject, options, success);3587 runWithOptions(globalObject, mainCommandLine.get(), success); 3584 3588 }); 3585 3589 3586 3590 printSuperSamplerState(); 3587 3591 3588 if ( options.m_dumpMemoryFootprint) {3592 if (mainCommandLine->m_dumpMemoryFootprint) { 3589 3593 MemoryFootprint footprint = MemoryFootprint::now(); 3590 3594
Note: See TracChangeset
for help on using the changeset viewer.