Memory Leaks plugged

Posted on June 27, 2009

leak Any leak is generally a bad thing and should get fixed ASAP! Also there are many kind of leaks, but in this case I am talking about memory leaks. If you need to brush up on what a memory leak is check out this nice article on wikipedia: Memory Leaks Artcle.

MUSE was leaking memory in two different areas of the kernel. Events that were grabbed from the wire were not properly freed. The second leak was the events that were created during initialization of the agents. To reduce the memory footprint of MUSE we avoided duplicating each events and just used pointers. This required creating a reference counting system. Handling the leaks involved making sure all increase of reference counter match a decrease of the reference counter. This can get very tricky in a code base that runs in parallel. Currently, MUSE is in beta Version 0.2 and this leak plug is one of the few changes being made before version 0.3 is ready.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis

Tags:

Leave a Comment

2 Agents Subscribed.

Tag Cloud


Buy Me Some Tea





Your Email Address :



Login