libgc.so
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > libgc.so




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    libgc.so  
qazmlp


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-04 08:34 AM

Memory leaks are found often in our C++ application which is running
on Solaris machine. So, it was decided to link with libgc.so which
comes with Solaris.

Before start doing that, I would want to know your
experiences/thoughts/suggestions on using this library.
- Will this really fix all memory leaks in a C/C++ application?
What are the leaks that can still escape from this?
- Will it cause any performance impacts ie. reducing the existing
performance
in a time critical application?
- Any other things that we have to take care?

Kindly pour in your suggestions.





[ Post a follow-up to this message ]



    Re: libgc.so  
Nils O. newsgroup user


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-04 09:34 AM

In article <db9bbf31.0402190908.40d37ed6@posting.google.com>, qazmlp wrote:
> Memory leaks are found often in our C++ application which is running
> on Solaris machine. So, it was decided to link with libgc.so which
> comes with Solaris.
I'd say you should try rather hard with some memory leak finding
tool, and plug those rather.
> Before start doing that, I would want to know your
> experiences/thoughts/suggestions on using this library.
>  - Will this really fix all memory leaks in a C/C++ application?
Often. Not guaranteed though.
> What are the leaks that can still escape from this?
Leaks that arn't true leaks. e.g. still keeping a pointer
to something you really should have disposed long ago.

>  - Will it cause any performance impacts ie. reducing the existing
> performance
> in a time critical application?
malloc and especially free can take substancial longer time now.
>  - Any other things that we have to take care?
>
> Kindly pour in your suggestions.


--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal
System Engineer
w w w . u t e l s y s t e m s . c o m





[ Post a follow-up to this message ]



    Re: libgc.so  
Chandrakant Mohire


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-04 09:34 PM

There is another good tool purify that comes with solaris box.
This  finds memory leaks - memory that  has been  allocated but can no
longer be acessed
because  there are no pointers to it.
This also detects
reading / writing beyond array limit
reading / writing freed memory

Refer man purify

Rgds,
--Chandrakant



"qazmlp" <qazmlp1209@rediffmail.com> wrote in message
news:db9bbf31.0402190908.40d37ed6@posting.google.com...
> Memory leaks are found often in our C++ application which is running
> on Solaris machine. So, it was decided to link with libgc.so which
> comes with Solaris.
>
> Before start doing that, I would want to know your
> experiences/thoughts/suggestions on using this library.
>  - Will this really fix all memory leaks in a C/C++ application?
> What are the leaks that can still escape from this?
>  - Will it cause any performance impacts ie. reducing the existing
> performance
> in a time critical application?
>  - Any other things that we have to take care?
>
> Kindly pour in your suggestions.







[ Post a follow-up to this message ]



    Re: libgc.so  
Alan Coopersmith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-19-04 10:33 PM

"Chandrakant Mohire" <chandrakant.M@in.bosch.com> writes in comp.unix.solari
s:
|There is another good tool purify that comes with solaris box.

Purify is good, but isn't included with Solaris.  You have to buy it
from IBM (formerly Rational, before that PureAtria, and long ago, Pure
Software).   http://www-306.ibm.com/software/awdtools/purifyplus/

Sun does have very similar functionality in the dbx debugger included
with the Sun Studio compiler products.

--
 ________________________________________
________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/       aka: Alan.Coopersmith@Sun.COM
Working for, but definitely not speaking for, Sun Microsystems, Inc.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register