harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-4391) [classlib][build] define macro NDEBUG for release build to remove trace messages
Date Fri, 28 Dec 2007 13:37:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gregory Shimansky closed HARMONY-4391.
--------------------------------------


No response, assuming ok.

> [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.


Mime
View raw message