$OpenBSD: patch-src_3rdparty_chromium_base_profiler_stack_sampler_openbsd_cc,v 1.1 2021/01/19 06:16:33 rsadowski Exp $

Index: src/3rdparty/chromium/base/profiler/stack_sampler_openbsd.cc
--- src/3rdparty/chromium/base/profiler/stack_sampler_openbsd.cc.orig
+++ src/3rdparty/chromium/base/profiler/stack_sampler_openbsd.cc
@@ -0,0 +1,26 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/profiler/stack_sampler.h"
+
+namespace base {
+
+std::unique_ptr<StackSampler> StackSampler::Create(
+    SamplingProfilerThreadToken thread_token,
+    ModuleCache* module_cache,
+    StackSamplerTestDelegate* test_delegate,
+    std::unique_ptr<Unwinder> native_unwinder) {
+  return nullptr;
+}
+
+// static
+size_t StackSampler::GetStackBufferSize() {
+  size_t stack_size = PlatformThread::GetDefaultThreadStackSize();
+
+  // If getrlimit somehow fails, return the default main thread stack size
+  // of 32 MB.
+  return stack_size > 0 ? stack_size : 32 * 1024 * 1024;
+}
+
+}  // namespace base
