summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/heap-profiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/chromium/src/heap-profiler.cc')
-rw-r--r--third_party/tcmalloc/chromium/src/heap-profiler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/heap-profiler.cc b/third_party/tcmalloc/chromium/src/heap-profiler.cc
index a1c643a9..3055f4ce 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -524,9 +524,9 @@ extern "C" void HeapProfilerStart(const char* prefix) {
filename_prefix[prefix_length] = '\0';
}
-extern "C" bool IsHeapProfilerRunning() {
+extern "C" int IsHeapProfilerRunning() {
SpinLockHolder l(&heap_lock);
- return is_on;
+ return is_on ? 1 : 0; // return an int, because C code doesn't have bool
}
extern "C" void HeapProfilerStop() {