Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: Source/web/WebKit.cpp

Issue 930793002: Merge 190021 "Web SQL: Termiante database thread before finalizi..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2272/
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ScriptStreamerThread::shutdown(); 210 ScriptStreamerThread::shutdown();
211 211
212 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); 212 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate();
213 V8PerIsolateData::willBeDestroyed(isolate); 213 V8PerIsolateData::willBeDestroyed(isolate);
214 214
215 // Make sure we stop WorkerThreads before the main thread's ThreadState 215 // Make sure we stop WorkerThreads before the main thread's ThreadState
216 // and later shutdown steps starts freeing up resources needed during 216 // and later shutdown steps starts freeing up resources needed during
217 // worker termination. 217 // worker termination.
218 WorkerThread::terminateAndWaitForAllWorkers(); 218 WorkerThread::terminateAndWaitForAllWorkers();
219 219
220 ModulesInitializer::terminateThreads();
221
220 // Detach the main thread before starting the shutdown sequence 222 // Detach the main thread before starting the shutdown sequence
221 // so that the main thread won't get involved in a GC during the shutdown. 223 // so that the main thread won't get involved in a GC during the shutdown.
222 ThreadState::detachMainThread(); 224 ThreadState::detachMainThread();
223 225
224 V8PerIsolateData::destroy(isolate); 226 V8PerIsolateData::destroy(isolate);
225 227
226 shutdownWithoutV8(); 228 shutdownWithoutV8();
227 } 229 }
228 230
229 void shutdownWithoutV8() 231 void shutdownWithoutV8()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 #endif // !LOG_DISABLED 268 #endif // !LOG_DISABLED
267 } 269 }
268 270
269 void resetPluginCache(bool reloadPages) 271 void resetPluginCache(bool reloadPages)
270 { 272 {
271 ASSERT(!reloadPages); 273 ASSERT(!reloadPages);
272 Page::refreshPlugins(); 274 Page::refreshPlugins();
273 } 275 }
274 276
275 } // namespace blink 277 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698