Index: src/runtime-profiler.h |
diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h |
index cb05cf6b16a4fd9a773d1a5900d8b7f99f9cf014..3f3ab0773a07d6b109bb408d18f502257e1548ff 100644 |
--- a/src/runtime-profiler.h |
+++ b/src/runtime-profiler.h |
@@ -84,10 +84,9 @@ class RuntimeProfiler { |
static bool IsSomeIsolateInJS(); |
static bool WaitForSomeIsolateToEnterJS(); |
- // When shutting down we join the profiler thread. Doing so while |
- // it's waiting on a semaphore will cause a deadlock, so we have to |
- // wake it up first. |
- static void WakeUpRuntimeProfilerThreadBeforeShutdown(); |
+ // Stops the runtime profiler thread when profiling support is being |
+ // turned off. |
+ static void StopRuntimeProfilerThreadBeforeShutdown(Thread* thread); |
void UpdateSamplesAfterScavenge(); |
void RemoveDeadSamples(); |