lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #52763] mdns: move data off the stack and dynamically


From: Douglas
Subject: [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data.
Date: Wed, 3 Jan 2018 11:00:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #13, bug #52763 (project lwip):

> Adding even more unrelated code into the same patchset is not the way
forward. Our time matters as well, and we want to make sure that the new code
works. At some point it will be easier for me to just do the changes myself
than to review this.

You might be able to solve the problem of moving the data off the stack, to
reduce the peak stack usage, by putting the same static objects in a pool, but
you will not reduce memory usage, and will have more ram taken for the pool.

> In your patch, the data allocated with strndup is returned with mem_free,
but that will fail for everyone but you since the two are usually two totally
different memory allocation systems. 

I guess they would have to implement a variation of strndup that allocated
from the same heap as mem_free.

I've leant a lot about lwip attempting this, and that is something to think
about, but I'd like to take a break from this attempt now until I have some
constructive ideas. Thank you for your help.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?52763>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]