From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 137CB1F601 for ; Fri, 2 Dec 2022 06:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669963355; bh=r1M+73GHpd1/sayDmoMLjSR+S4aL/2u+66LbgK60UHg=; h=From:To:Subject:Date:From; b=RoQv8Ck+Ab794+Y5tgASdL9thCtC01C7/1dmsQWLc9NhV3EkQiG2LLstgIoftCYf+ kA/xZcoAt/gBpzDJp46IJFiEeWAivxuKTr8H6zzouGlS6CR5zqP8NAAdfMBZlzqlMT GMLojT6U/L0KnQAgv0ErgLJ9EnbC/LsOVtcV93CU= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH] initialize src_loc.freed_bytes to zero Date: Fri, 2 Dec 2022 06:42:34 +0000 Message-Id: <20221202064234.30539-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: While this is copied from the pre-zeroed TSD, it won't always be the case since the TSD area will be used more extensively. --- mwrap_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mwrap_core.h b/mwrap_core.h index dab3e77..9b771d2 100644 --- a/mwrap_core.h +++ b/mwrap_core.h @@ -258,6 +258,7 @@ again: l->mtx = mutex_assign(); l->age_total = 0; l->max_lifespan = 0; + l->freed_bytes = 0; l->frees = 0; l->allocations = 1; CDS_INIT_LIST_HEAD(&l->allocs);