Gentoo Archives: gentoo-dev

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Introduce global dmalloc USE flag?
Date: Mon, 24 Jun 2013 08:54:16
Message-Id: 1372064040.19250.3.camel@gilles.gandi.net
In Reply to: Re: [gentoo-dev] Introduce global dmalloc USE flag? by "Dennis Lan (dlan)"
1 Le samedi 22 juin 2013 à 15:48 +0800, Dennis Lan (dlan) a écrit :
2 > On Fri, Jun 21, 2013 at 2:34 AM, Ian Stakenvicius <axs@g.o> wrote:
3 > > -----BEGIN PGP SIGNED MESSAGE-----
4 > > Hash: SHA256
5 > >
6 > > On 13/06/13 01:05 AM, Michał Górny wrote:
7 > >> Dnia 2013-06-13, o godz. 09:35:54 "Dennis Lan (dlan)"
8 > >> <dennis.yxun@×××××.com> napisał(a):
9 > >>
10 > >>> also 4) app-admin/conserver 5) net-nds/ypbind 6) net-fs/samba 7)
11 > >>> net-analyzer/scli 8) net-analyzer/traceproto 6) net-misc/siproxd
12 > >>>
13 > >>> use dmalloc but controlled under USE=debug
14 > >>
15 > >> Do those use USE=debug solely for dmalloc or does it imply other
16 > >> stuff? Therefore: will it be possible to use USE=dmalloc in those
17 > >> packages?
18 >
19 > HI mgorny, as I look into those ebuilds
20 > all of them use the USE=debug flag for dmalloc only, not for other
21 > debugging control
22 > so, as your second question, of course it's possible to switch to USE=dmalloc
23 >
24 > >>
25 > >
26 > > and to follow up, if we assume that USE="debug" does more than just
27 > > build the package against the dmalloc lib (which is likely), is there
28 >
29 > Yes, if this case exist.. then the separation would be good
30 >
31 >
32 > > any particular benefit to USE="debug -dmalloc" ? Or USE="dmalloc
33 > > - -debug" ?
34 > >
35 >
36 > I'm not sure, probably the befefits would be that we can have more
37 > accurate/explicit control,
38 > USE="dmalloc" is for debugging memory usage stuff (allocation, free,
39 > fence-post overwritten control)
40 > and USE=debug for other stuff?
41 >
42 > This is a slightly improvement, but I'm also totally fine to keep
43 > current state as it is.. no big deal
44
45 Reading this thread, looks to me like these dmalloc USE should be moved
46 to debug, unless it has no runtime impact on usual speed, etc.
47
48 --
49 Gilles Dartiguelongue <eva@g.o>
50 Gentoo

Replies

Subject Author
Re: [gentoo-dev] Introduce global dmalloc USE flag? Samuli Suominen <ssuominen@g.o>