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

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

Issue 1776183004: Move ScriptStreamerThread::shutdown to CoreInitializer::shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/Init.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProv ider::instance()); 189 Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProv ider::instance());
190 Platform::current()->unregisterMemoryDumpProvider(FontCacheMemoryDumpPro vider::instance()); 190 Platform::current()->unregisterMemoryDumpProvider(FontCacheMemoryDumpPro vider::instance());
191 191
192 // We don't need to (cannot) remove s_endOfTaskRunner from the current 192 // We don't need to (cannot) remove s_endOfTaskRunner from the current
193 // message loop, because the message loop is already destructed before 193 // message loop, because the message loop is already destructed before
194 // the shutdown() is called. 194 // the shutdown() is called.
195 delete s_endOfTaskRunner; 195 delete s_endOfTaskRunner;
196 s_endOfTaskRunner = nullptr; 196 s_endOfTaskRunner = nullptr;
197 } 197 }
198 198
199 // Shutdown V8-related background threads before V8 is ramped down. Note
200 // that this will wait the thread to stop its operations.
201 ScriptStreamerThread::shutdown();
202
203 V8Initializer::shutdownMainThread(); 199 V8Initializer::shutdownMainThread();
204 200
205 modulesInitializer().shutdown(); 201 modulesInitializer().shutdown();
206 202
207 shutdownWithoutV8(); 203 shutdownWithoutV8();
208 } 204 }
209 205
210 void shutdownWithoutV8() 206 void shutdownWithoutV8()
211 { 207 {
212 ASSERT(isMainThread()); 208 ASSERT(isMainThread());
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ASSERT(!reloadPages); 277 ASSERT(!reloadPages);
282 Page::refreshPlugins(); 278 Page::refreshPlugins();
283 } 279 }
284 280
285 void decommitFreeableMemory() 281 void decommitFreeableMemory()
286 { 282 {
287 WTF::Partitions::decommitFreeableMemory(); 283 WTF::Partitions::decommitFreeableMemory();
288 } 284 }
289 285
290 } // namespace blink 286 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/Init.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698