Message ID | 1404775168-17884-10-git-send-email-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 76C4F1400D7 for <incoming@patchwork.ozlabs.org>; Tue, 8 Jul 2014 09:21:28 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 045414B6D1; Tue, 8 Jul 2014 01:21:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rt7pOOuY9Utt; Tue, 8 Jul 2014 01:21:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9015BA73FE; Tue, 8 Jul 2014 01:20:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F97B4B6B4 for <u-boot@lists.denx.de>; Tue, 8 Jul 2014 01:20:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RvMurJSG3q6L for <u-boot@lists.denx.de>; Tue, 8 Jul 2014 01:20:05 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ve0-f201.google.com (mail-ve0-f201.google.com [209.85.128.201]) by theia.denx.de (Postfix) with ESMTPS id 3DD094B6B5 for <u-boot@lists.denx.de>; Tue, 8 Jul 2014 01:19:44 +0200 (CEST) Received: by mail-ve0-f201.google.com with SMTP id i13so37335veh.2 for <u-boot@lists.denx.de>; Mon, 07 Jul 2014 16:19:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gWLKqMlmoSZstzIURqUmIBBE1+X3oXgE2/p6Y/UUx+k=; b=aX23MAaEcuT8DayD2+LG/dyo2TvhPfwEj3HRmp0UDuh6eaKvNjoxKC/kyZMgmWLBHz dmh5cjTwsAIGyR/YS+6MtJkGB0GechXvBO0CzZvI5iSwqBCX71eeIDXFwrnDW12HBXok CHyWpJJnthH1dXLFLj6Z/wX9Plbn1o/BhLp97hkVk5/C4ts585AO2ymVuXqmjZo/57H1 JQPvlesZoD1HGeSaHYQ8LaEf4jVxrykfh39wWkmJ263xVCbNGECxNHxdGngJ4kG/I6DU w6+PY208X35cajB72QZZj/OBKq0dttQJXeUskHtDtmw/Cc6scTZPisQueK42IOC/y8qN qVmw== X-Gm-Message-State: ALoCoQnTKsrrg5/9OlUPkotzujM4nyQjaipy3gjhEeS/27KdtcogXmsCoF2xDwV9KbGZ2vGVfpY5 X-Received: by 10.236.203.169 with SMTP id f29mr7686709yho.24.1404775182204; Mon, 07 Jul 2014 16:19:42 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id o69si2402969yhp.6.2014.07.07.16.19.42 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Jul 2014 16:19:42 -0700 (PDT) Received: from kaki.bld.corp.google.com (kaki.bld.corp.google.com [172.29.216.32]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 195F65A45D5; Mon, 7 Jul 2014 16:19:42 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id DA813220692; Mon, 7 Jul 2014 17:19:41 -0600 (MDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 7 Jul 2014 17:19:28 -0600 Message-Id: <1404775168-17884-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.0.0.526.g5318336 In-Reply-To: <1404775168-17884-1-git-send-email-sjg@chromium.org> References: <1404775168-17884-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 9/9] sandbox: Always enable malloc debug X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de |
diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 26ba8fd..f987339 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1,5 +1,9 @@ #include <common.h> +#ifdef CONFIG_SANDBOX +#define DEBUG +#endif + #if 0 /* Moved to malloc.h */ /* ---------- To make a malloc.h, start cutting here ------------ */
Tun on DEBUG in malloc(). This adds code space and slows things down but for sandbox this is acceptable. We gain the ability to check for memory leaks in tests. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: None common/dlmalloc.c | 4 ++++ 1 file changed, 4 insertions(+)