Changeset 31167 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Mar 19, 2008, 6:00:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r30576 r31167 936 936 markStackObjectsConservatively(); 937 937 markProtectedObjects(); 938 ExecState::markActiveExecStates();939 938 List::markProtectedLists(); 940 939 #if USE(MULTIPLE_THREADS) … … 1046 1045 void Collector::reportOutOfMemoryToAllExecStates() 1047 1046 { 1048 ExecStateStack::const_iterator end = ExecState::activeExecStates().end(); 1049 for (ExecStateStack::const_iterator it = ExecState::activeExecStates().begin(); it != end; ++it) { 1050 (*it)->setException(Error::create(*it, GeneralError, "Out of memory")); 1051 } 1047 if (!JSGlobalObject::head()) 1048 return; 1049 1050 JSGlobalObject* globalObject = JSGlobalObject::head(); 1051 do { 1052 ExecStateStack::const_iterator end = globalObject->activeExecStates().end(); 1053 for (ExecStateStack::const_iterator it = globalObject->activeExecStates().begin(); it != end; ++it) 1054 (*it)->setException(Error::create(*it, GeneralError, "Out of memory")); 1055 globalObject = globalObject->next(); 1056 } while (globalObject != JSGlobalObject::head()); 1052 1057 } 1053 1058
Note:
See TracChangeset
for help on using the changeset viewer.