Manoj Nayak writes:
> It looks like Solaris has two Memory management functions for malloc() 
> and related functions. Solaris provides malloc() and related functions 
> through `libc.a'.

OpenSolaris doesn't have a libc.a.

> Currently my product code is implemented using malloc(), memallign() 
> from glibc on Linux & subsequently ported to Solaris using libc.However 
> memory instrumentation is not possible through libc.
> because mallinfo is missing in libc.

Right.  They're intentionally not part of libc.

libumem is probably a much better answer here than libmalloc, for what
it's worth.

> So we tried to link the existing code with libmalloc , However the code 
> execution crashes during memory deallocation/free.

What do you find when you debug the application ... ?

> I want to know if it's possible to use malloc() & related functions from 
> libc & mallinfo from libmalloc at the  sametime.

No.  If you're using mallinfo, you need to be using the malloc that's
in libmalloc, not reaching under for the one in libc.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to