Reviewers: Mads Ager, Rico,

Description:
Really fix WebKit buildbot crashes on StopProfiling.

This time I hope I'm doing the right check.

[email protected]

Please review this at http://codereview.chromium.org/1630027/show

Affected files:
  M src/cpu-profiler.cc


Index: src/cpu-profiler.cc
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
index d1230340e694c374a78642a489bb0216769e4238..234114908cedb3cdb7698365e7fcac070fa3b64e 100644
--- a/src/cpu-profiler.cc
+++ b/src/cpu-profiler.cc
@@ -253,12 +253,12 @@ void CpuProfiler::StartProfiling(String* title) {


 CpuProfile* CpuProfiler::StopProfiling(const char* title) {
- return singleton_ != NULL ? singleton_->StopCollectingProfile(title) : NULL;
+  return is_profiling() ? singleton_->StopCollectingProfile(title) : NULL;
 }


 CpuProfile* CpuProfiler::StopProfiling(String* title) {
- return singleton_ != NULL ? singleton_->StopCollectingProfile(title) : NULL;
+  return is_profiling() ? singleton_->StopCollectingProfile(title) : NULL;
 }




--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to