Changeset 275971 in webkit


Ignore:
Timestamp:
Apr 14, 2021, 2:57:21 PM (4 years ago)
Author:
mark.lam@apple.com
Message:

Apply DeferTermination in some utility functions in the jsc shell.
https://bugs.webkit.org/show_bug.cgi?id=224572
rdar://76646089

Reviewed by Yusuke Suzuki.

This is to make sure that these functions don't get in the way of testing with
the watchdog. Since these are only test utility functions, just doing the simple
thing of using a DeferTermination scope is the right thing to do here.

  • jsc.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r275969 r275971  
     12021-04-14  Mark Lam  <mark.lam@apple.com>
     2
     3        Apply DeferTermination in some utility functions in the jsc shell.
     4        https://bugs.webkit.org/show_bug.cgi?id=224572
     5        rdar://76646089
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        This is to make sure that these functions don't get in the way of testing with
     10        the watchdog.  Since these are only test utility functions, just doing the simple
     11        thing of using a DeferTermination scope is the right thing to do here.
     12
     13        * jsc.cpp:
     14
    1152021-04-14  Mark Lam  <mark.lam@apple.com>
    216
  • trunk/Source/JavaScriptCore/jsc.cpp

    r275648 r275971  
    3232#include "Completion.h"
    3333#include "ConfigFile.h"
     34#include "DeferTermination.h"
    3435#include "DeferredWorkTimer.h"
    3536#include "Disassembler.h"
     
    25232524    VM& vm = globalObject->vm();
    25242525    JSLockHolder lock(vm);
     2526    DeferTermination deferScope(vm);
    25252527    auto scope = DECLARE_THROW_SCOPE(vm);
    25262528
     
    25382540    VM& vm = globalObject->vm();
    25392541    JSLockHolder lock(vm);
     2542    DeferTermination deferScope(vm);
    25402543    auto scope = DECLARE_THROW_SCOPE(vm);
    25412544    String jsonString;
     
    25812584{
    25822585    VM& vm = globalObject->vm();
     2586    DeferTermination deferScope(vm);
    25832587    auto scope = DECLARE_THROW_SCOPE(vm);
    25842588
Note: See TracChangeset for help on using the changeset viewer.