MCPcopy Create free account
hub / github.com/catboost/catboost / SetUp

Method SetUp

library/cpp/coroutine/engine/stack/ut/stack_ut.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 {}
21
22 void SetUp() override {
23 ASSERT_TRUE(GetAlignedMemory(StackSizeInPages, RawMemory_, AlignedMemory_));
24 Stack_ = MakeHolder<NDetails::TStack>(RawMemory_, AlignedMemory_, StackSize_, "test_stack");
25 Guard_.Protect(AlignedMemory_, StackSize_, false);
26 }
27
28 void TearDown() override {
29 Guard_.RemoveProtection(AlignedMemory_, StackSize_);

Callers

nothing calls this directly

Calls 2

GetAlignedMemoryFunction · 0.85
ProtectMethod · 0.45

Tested by

no test coverage detected