| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |