We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be4eda commit ff16abcCopy full SHA for ff16abc
src/limits/MemoryLimitListener.cc
@@ -65,6 +65,7 @@ MemoryLimitListener::MemoryLimitListener(uint64_t memoryLimitKb)
65
Arg(2)>MEMORY_LIMIT_MARGIN/2));
66
}
67
tracer::TraceAction MemoryLimitListener::handleMemoryAllocation(uint64_t allocatedMemoryKb){
68
+ if(memoryLimitKb_==0) return tracer::TraceAction::CONTINUE; // If there is no limit, we allow for allocation
69
uint64_t memoryUsage = getMemoryUsageKb() + allocatedMemoryKb;
70
memoryPeakKb_ = std::max(memoryPeakKb_, memoryUsage);
71
outputBuilder_->setMemoryPeak(memoryPeakKb_);
0 commit comments