Changeset 14904 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 18, 2006, 10:11:51 AM (19 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r14902 r14904 1 2006-06-18 Anders Carlsson <[email protected]> 2 3 Reviewed by Geoff. 4 5 * kjs/interpreter.cpp: 6 (KJS::TimeoutChecker::pauseTimeoutCheck): 7 Do nothing if the timeout check hasn't been started. 8 9 (KJS::TimeoutChecker::resumeTimeoutCheck): 10 Do nothing if the timeout check hasn't been started. 11 Use the right signal handler when unblocking. 12 13 (KJS::Interpreter::handleTimeout): 14 pause/resume the timeout check around the call to 15 shouldInterruptScript(). 16 1 17 2006-06-16 Ben Goodger <[email protected]> 2 18 … … 11 27 Make sure to only assert equality with s_executingInterpreter when it 12 28 is being used (i.e. when HAVE(SYS_TIME_H) == true) 13 14 29 15 30 2006-06-17 David Kilzer <[email protected]> -
trunk/JavaScriptCore/kjs/interpreter.cpp
r14902 r14904 143 143 void TimeoutChecker::pauseTimeoutCheck(Interpreter* interpreter) 144 144 { 145 #if HAVE(SYS_TIME_H) 145 if (interpreter->m_startTimeoutCheckCount == 0) 146 return; 147 148 #if HAVE(SYS_TIME_H) 146 149 ASSERT(interpreter == s_executingInterpreter); 147 150 … … 164 167 void TimeoutChecker::resumeTimeoutCheck(Interpreter* interpreter) 165 168 { 169 if (interpreter->m_startTimeoutCheckCount == 0) 170 return; 171 166 172 #if HAVE(SYS_TIME_H) 167 173 ASSERT(interpreter == s_executingInterpreter); … … 187 193 188 194 // Unblock signal 189 currentSignalHandler = signal(SIGALRM, SIG_IGN);195 currentSignalHandler = signal(SIGALRM, alarmHandler); 190 196 #endif 191 197 } … … 802 808 { 803 809 m_timedOut = false; 804 805 return shouldInterruptScript(); 810 811 pauseTimeoutCheck(); 812 bool retval = shouldInterruptScript(); 813 resumeTimeoutCheck(); 814 815 return retval; 806 816 } 807 817 -
trunk/JavaScriptCore/kjs/interpreter.h
r14893 r14904 337 337 338 338 protected: 339 virtual bool shouldInterruptScript() { return true; }339 virtual bool shouldInterruptScript() const { return true; } 340 340 long m_timeoutTime; 341 341
Note:
See TracChangeset
for help on using the changeset viewer.