From: Xiubo Li Date: Mon, 15 Mar 2021 06:21:04 +0000 (+0800) Subject: BackTrace: reduce the array max number to 32 X-Git-Tag: v17.1.0~2533^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e93c256a3cde869466d496d83e5f0f84a8d3d88d;p=ceph.git BackTrace: reduce the array max number to 32 32 should be enough for almost most case, even the call trace depth could larger than 32 but usually that could include the useful info needed. This could help save memories. Signed-off-by: Xiubo Li --- diff --git a/src/common/BackTrace.h b/src/common/BackTrace.h index 0132fa5da87..7de30a5f6e0 100644 --- a/src/common/BackTrace.h +++ b/src/common/BackTrace.h @@ -16,7 +16,7 @@ namespace ceph { class Formatter; struct BackTrace { - const static int max = 100; + const static int max = 32; int skip; void *array[max]{};