Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 20676 invoked from network); 24 Jul 2007 16:28:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 16:28:52 -0000 Received: (qmail 53265 invoked by uid 500); 24 Jul 2007 16:28:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 53246 invoked by uid 500); 24 Jul 2007 16:28:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 53236 invoked by uid 99); 24 Jul 2007 16:28:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:28:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:28:51 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 834217141ED for ; Tue, 24 Jul 2007 09:28:31 -0700 (PDT) Message-ID: <155680.1185294511535.JavaMail.jira@brutus> Date: Tue, 24 Jul 2007 09:28:31 -0700 (PDT) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4391) [classlib][build] define macro NDEBUG for release build to remove trace messages In-Reply-To: <5695624.1183888144587.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregory Shimansky reassigned HARMONY-4391: ------------------------------------------ Assignee: Gregory Shimansky > [classlib][build] define macro NDEBUG for release build to remove trace messages > -------------------------------------------------------------------------------- > > Key: HARMONY-4391 > URL: https://issues.apache.org/jira/browse/HARMONY-4391 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Environment: Windows, Linux > Reporter: Ivan Popov > Assignee: Gregory Shimansky > Priority: Minor > Attachments: H4391_classlib_build.patch > > > NDEBUG is a standard macro for C/C++ programs used in function assert(). It's recommended to define it for release build to remove assertion. Some programs use this macro also to remove other debug/trace code in release mode. > JDWP agent from jdktools/jpda component includes a lot of trace messages, which facilitate debugging and bug fixing. These trace messages gather a lot of additional data and significantly slow down agent performance and may cause leaks of memory and JNI references uses for additional data. Trace message should be removed from release build of JDWP agent by defining standard macro NDEBUG. Since jdktools component uses build scripts from classlib, then classlib build should define NDEBUG for compilation of native sources in release mode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.