From c4e37c209dae9d9540e2b9bf1ad04151283f02e3 Mon Sep 17 00:00:00 2001 From: Thirupathi S <108743108+Thirsrin@users.noreply.github.com> Date: Mon, 6 May 2024 20:38:23 +0530 Subject: [PATCH] Updated the comments on resetwatermarks (#33309) --- src/platform/Linux/DiagnosticDataProviderImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/Linux/DiagnosticDataProviderImpl.cpp b/src/platform/Linux/DiagnosticDataProviderImpl.cpp index cc57da65e2d036..5ee5558064afeb 100644 --- a/src/platform/Linux/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Linux/DiagnosticDataProviderImpl.cpp @@ -287,8 +287,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetWatermarks() // If implemented, the server SHALL set the value of the CurrentHeapHighWatermark attribute to the // value of the CurrentHeapUsed. - // On Linux, the write operation is non-op since we always rely on the mallinfo system - // function to get the current heap memory. + // Get the current amount of heap memory, in bytes, that are being used by + // the current running program and reset the max heap high watermark to current heap amount. struct mallinfo mallocInfo = mallinfo(); maxHeapHighWatermark = mallocInfo.uordblks;