aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/new.cpp
blob: 0b4a4b3b8b8090ec1971410103519d72bb355cf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "new.h"

#include <library/cpp/yt/system/exit.h>

namespace NYT::NDetail {

////////////////////////////////////////////////////////////////////////////////

void AbortOnOom()
{
    AbortProcessDramatically(
        EProcessExitCode::OutOfMemory,
        "Out-of-memory during object allocation");
}

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NDetail