| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |