[Tremor] Memory leaks in Tremor code : low branch version (Bharan Giridhar) AW: Tremor Digest, Vol 33, Issue 1

Lorber, Markus markus.lorber at siemens.com
Wed Feb 14 03:01:26 PST 2007


Hi Bharan!

Maybe I have told you this before...

My final solution with the Tremor code adaption for the Blackfin DSP was:

1. To do the same patches as you mentioned (but proplems with stack and heap remaind)
2. To replace all alloca()'s by malloc() and free()  -> This solved the stack problems but not the heap problems.
3. To give every OggVorbis channel its own heap. After having finished playback on this channel, additionaly to the ogg_clear() I perform a clearing of the corresponding heap. So The remaining memory leaks do not desturb me any more.  This is possible on the Blackfin DSP as you can define several heaps there.

If you are able to define several heaps on the Sharc, this could propably solve your remainig problems.

Best Regards and good luck,
Markus

  

-----Ursprüngliche Nachricht-----
Von: tremor-bounces at xiph.org [mailto:tremor-bounces at xiph.org] Im Auftrag von tremor-request at xiph.org
Gesendet: Dienstag, 13. Februar 2007 21:00
An: tremor at xiph.org
Betreff: Tremor Digest, Vol 33, Issue 1

Send Tremor mailing list submissions to
	tremor at xiph.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.xiph.org/mailman/listinfo/tremor
or, via email, send a message with subject or body 'help' to
	tremor-request at xiph.org

You can reach the person managing the list at
	tremor-owner at xiph.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tremor digest..."


Today's Topics:

   1. Memory leaks in Tremor code : low branch version (Bharan Giridhar)


----------------------------------------------------------------------

Message: 1
Date: Tue, 13 Feb 2007 15:24:46 +0530
From: "Bharan Giridhar" <bharan.giridhar at gmail.com>
Subject: [Tremor] Memory leaks in Tremor code : low branch version
To: tremor at xiph.org, "Lorber, Markus" <markus.lorber at siemens.com>
Message-ID:
	<cd2127090702130154i45851cebo6dc8433e99726f36 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello

I am implementing the tremor code (low branch version) on the SHARC ADSP
21364. The code works fine, however I found that:

1. The heap continues to grow perennially (though slowly) which I believe is
because of some existing memory leaks. Could you please suggest a list of
all possibilities where this leak could occur?
2. Also, I have already applied the patch for fixing _ogg_buffer_destroy()
and ogg_stream_destroy() leaks.

Please reply asap.

Bharan

-- 
Bharan Giridhar
Final Year B.Tech Electronics &amp; Comm.
Room# 90 ,V Block NITKS Hostels
NITK, Srinivasanagar Surathkal
DK District, KK
IND-575025
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/tremor/attachments/20070213/0a961b2e/attachment-0001.html

------------------------------

_______________________________________________
Tremor mailing list
Tremor at xiph.org
http://lists.xiph.org/mailman/listinfo/tremor


End of Tremor Digest, Vol 33, Issue 1
*************************************


More information about the Tremor mailing list