From c428a33ec7a753cce3fe8ec8bbcc220d15b628d1 Mon Sep 17 00:00:00 2001 From: georgehao Date: Wed, 9 Apr 2025 14:31:15 +0800 Subject: [PATCH] update --- internal/debug/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/debug/api.go b/internal/debug/api.go index b529db6e0f..8a7426d916 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -239,7 +239,7 @@ func (*HandlerT) SetGCPercent(v int) int { // SetMemoryLimit sets the GOMEMLIMIT for the process. It returns the previous limit. // Note: -// - The input limit is provided as bytes, and includes all memory mapped, managed, and not released by the Go runtime. +// - The input limit is provided as bytes. A negative input does not adjust the limit // - A zero limit or a limit that's lower than the amount of memory used by the Go runtime may cause the garbage collector to runnearly continuously. However, the application may still make progress. // - Setting the limit too low will cause Geth to become unresponsive. // - Geth also allocates memory off-heap, particularly for fastCache and Pebble, which can be non-trivial (a few gigabytes by default).