Index: src/libplatform/default-platform.cc |
diff --git a/src/libplatform/default-platform.cc b/src/libplatform/default-platform.cc |
index 5cd80ad316dd2f90b69dcc38ae7ccc3f3212408a..93dff69709b9e450ae7ac51587e4b91c457bc296 100644 |
--- a/src/libplatform/default-platform.cc |
+++ b/src/libplatform/default-platform.cc |
@@ -29,9 +29,12 @@ void PrintStackTrace() { |
} // namespace |
-v8::Platform* CreateDefaultPlatform(int thread_pool_size, |
- IdleTaskSupport idle_task_support) { |
- v8::base::debug::EnableInProcessStackDumping(); |
+v8::Platform* CreateDefaultPlatform( |
+ int thread_pool_size, IdleTaskSupport idle_task_support, |
+ InProcessStackDumping in_process_stack_dumping) { |
+ if (in_process_stack_dumping == InProcessStackDumping::kEnabled) { |
+ v8::base::debug::EnableInProcessStackDumping(); |
+ } |
DefaultPlatform* platform = new DefaultPlatform(idle_task_support); |
platform->SetThreadPoolSize(thread_pool_size); |
platform->EnsureInitialized(); |