mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
19 lines
584 B
Diff
19 lines
584 B
Diff
--- ./src/mongo/platform/stack_locator_pthread_getattr_np.cpp.orig
|
|
+++ ./src/mongo/platform/stack_locator_pthread_getattr_np.cpp
|
|
@@ -36,6 +36,16 @@
|
|
#include "mongo/util/assert_util.h"
|
|
#include "mongo/util/scopeguard.h"
|
|
|
|
+__attribute__((constructor))
|
|
+static void set_default_stack_size(void)
|
|
+{
|
|
+ pthread_attr_t attr;
|
|
+ invariant(pthread_attr_init(&attr) == 0);
|
|
+ invariant(pthread_attr_setstacksize(&attr, 256*1024) == 0);
|
|
+ pthread_setattr_default_np(&attr);
|
|
+ invariant(pthread_attr_destroy(&attr) == 0);
|
|
+}
|
|
+
|
|
namespace mongo {
|
|
|
|
StackLocator::StackLocator() {
|