View | Details | Raw Unified | Return to bug 238563 | Differences between
and this patch

Collapse All | Expand All

(-)www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc (-3 / +12 lines)
Lines 1-5 Link Here
1
--- base/sampling_heap_profiler/sampling_heap_profiler.cc.orig	2019-06-04 18:55:15 UTC
1
--- base/sampling_heap_profiler/sampling_heap_profiler.cc.orig	2019-06-13 09:11:51.000000000 +0200
2
+++ base/sampling_heap_profiler/sampling_heap_profiler.cc
2
+++ base/sampling_heap_profiler/sampling_heap_profiler.cc	2019-06-14 19:09:06.434351000 +0200
3
@@ -22,7 +22,7 @@
4
 #include "base/trace_event/heap_profiler_allocation_context_tracker.h"
5
 #include "build/build_config.h"
6
 
7
-#if defined(OS_MACOSX)
8
+#if defined(OS_MACOSX) || defined(OS_BSD)
9
 #include <pthread.h>
10
 #endif
11
 
3
@@ -30,6 +30,10 @@
12
@@ -30,6 +30,10 @@
4
 #include <sys/prctl.h>
13
 #include <sys/prctl.h>
5
 #endif
14
 #endif
Lines 11-17 Link Here
11
 #if defined(OS_ANDROID) && BUILDFLAG(CAN_UNWIND_WITH_CFI_TABLE) && \
20
 #if defined(OS_ANDROID) && BUILDFLAG(CAN_UNWIND_WITH_CFI_TABLE) && \
12
     defined(OFFICIAL_BUILD)
21
     defined(OFFICIAL_BUILD)
13
 #include "base/trace_event/cfi_backtrace_android.h"
22
 #include "base/trace_event/cfi_backtrace_android.h"
14
@@ -65,6 +69,10 @@ const char* GetAndLeakThreadName() {
23
@@ -65,6 +69,10 @@
15
 #elif defined(OS_MACOSX)
24
 #elif defined(OS_MACOSX)
16
   int err = pthread_getname_np(pthread_self(), name, kBufferLen);
25
   int err = pthread_getname_np(pthread_self(), name, kBufferLen);
17
   if (err == 0 && *name != '\0')
26
   if (err == 0 && *name != '\0')

Return to bug 238563