Update checkStackSize.cpp

This commit is contained in:
alexey-milovidov 2020-01-25 03:06:13 +03:00 committed by GitHub
parent eeeaa3243e
commit 095f666677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
#include <Common/checkStackSize.h>
#include <Common/Exception.h>
#include <Core/Defines.h>
#include <ext/scope_guard.h>
#include <pthread.h>
#include <cstdint>
@ -24,7 +23,7 @@ namespace DB
static thread_local void * stack_address = nullptr;
static thread_local size_t max_stack_size = 0;
CH_WEAK void checkStackSize()
__attribute__((__weak__)) void checkStackSize()
{
using namespace DB;