meghs94 / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
1 stars 0 forks source link

[patch] ip_malloc vs malloc consistency fixes #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently lib6lowpan's ip_malloc.h sneakily defines malloc() to ip_malloc() 
during TinyOS builds. This sneaky definition also has the impact of changing 
other malloc uses over to use the statically sized ip_malloc pool, introducing 
unexpected contention.

Attached is a patch which switches the lib6lowpan code over to use ip_malloc, 
and removes the malloc->ip_malloc definition. If any external (test?) code is 
unhappy with this, we would strongly suggest said code provides an 
ip_malloc->malloc definition as part of its build process so that it doesn't 
impact actual TinyOS applications.

Original issue reported on code.google.com by jmatts...@dius.com.au on 10 Oct 2011 at 12:26

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by philip.l...@gmail.com on 14 Oct 2011 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by philip.l...@gmail.com on 21 Oct 2011 at 4:57

GoogleCodeExporter commented 8 years ago

Original comment by sdh...@gmail.com on 24 Oct 2011 at 3:30

GoogleCodeExporter commented 8 years ago
Test cases still pass.  I will keep an eye out for bugs caused by this.

Original comment by sdh...@gmail.com on 24 Oct 2011 at 9:58