⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 169930 in webkit


Ignore:
Timestamp:
Jun 12, 2014, 9:56:20 PM (12 years ago)
Author:
Simon Fraser
Message:

Fix assertions under JSC::setNeverInline() when running js tests in WebKitTestRunner
​https://bugs.webkit.org/show_bug.cgi?id=133840

Reviewed by Filip Pizlo.

Fix ASSERT(exec->vm().currentThreadIsHoldingAPILock()); under JSC::setNeverInline()
when running DFG tests.

  • API/JSCTestRunnerUtils.cpp:

(JSC::numberOfDFGCompiles):
(JSC::setNeverInline):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp

    r163844 r169930  
    3636{
    3737    ExecState* exec= toJS(context);
     38    JSLockHolder holder(exec);
    3839    return toRef(exec, numberOfDFGCompiles(toJS(exec, theFunctionValueRef)));
    3940}
    … …  
    4243{
    4344    ExecState* exec= toJS(context);
     45    JSLockHolder holder(exec);
    4446    return toRef(exec, setNeverInline(toJS(exec, theFunctionValueRef)));
    4547}
  • trunk/Source/JavaScriptCore/ChangeLog

    r169927 r169930  
     12014-06-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix assertions under JSC::setNeverInline() when running js tests in WebKitTestRunner
     4        https://bugs.webkit.org/show_bug.cgi?id=133840
     5
     6        Reviewed by Filip Pizlo.
     7       
     8        Fix ASSERT(exec->vm().currentThreadIsHoldingAPILock()); under JSC::setNeverInline()
     9        when running DFG tests.
     10
     11        * API/JSCTestRunnerUtils.cpp:
     12        (JSC::numberOfDFGCompiles):
     13        (JSC::setNeverInline):
     14
    1152014-06-12  Brent Fulgham  <bfulgham@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.