This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD value
- From: "Siva Kumar" <sivakumarjr at gmail dot com>
- To: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 23 Aug 2006 20:20:10 +0530
- Subject: [ECOS] CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD value
- Reply-to: jrsiva at cradle dot com
I took the latest CVS code base and built ecos. But with assertions
enabled, I'm running into assertion on cxxsupp.cxx test case wherein
the condition :
CYG_ASSERT(counter < CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD, "Do you want
an empty delete function?");
is failing in the first delete call itself (counter value is 1). In
the ecos library [include/pkgconf/infra.h], I saw that the value of
CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD is just '1' and not 100 as the
descriptions say. Hence the assertion!
In the infra.cdl, when I changed the flavor of the above macro to
data, the ecc file was generated as needed with the value of the macro
as default (100). With this ecc, when I built the target file,
assertion never happened. Why is CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD,
a boolean instead of data, if it has to take a value of 100 by
default? Pls shed some light.
Regards
Siv
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss