Skip to content

Commit 0392fbf

Browse files
authored
Fix build for windows (#12115)
1 parent c52270b commit 0392fbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/core/mon_alloc/tcmalloc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ class TTcMallocLimitHandler : public TSingletonTraits<TTcMallocLimitHandler> {
533533

534534
*Out_ << tcmalloc::MallocExtension::GetStats() << Endl;
535535

536+
#ifndef _win_
536537
if (auto childPid = fork(); childPid == 0) {
537538
kill(getppid(), SIGSTOP);
538539

@@ -555,6 +556,7 @@ class TTcMallocLimitHandler : public TSingletonTraits<TTcMallocLimitHandler> {
555556
}
556557

557558
// TODO: probably should wait for child, but we're going to OOM anyway.
559+
#endif
558560
}
559561
};
560562

0 commit comments

Comments
 (0)