lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #21075] pbuf_realloc() use with PBUF_RAM and MEM_LIBC_


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #21075] pbuf_realloc() use with PBUF_RAM and MEM_LIBC_MALLOC fails
Date: Fri, 14 Sep 2007 10:38:55 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #2, bug #21075 (project lwip):

> So, I think the simplest thing to do is to replace in mem.h, line 68:
> #define mem_realloc(x, size) realloc(x,size)
> by
> #define mem_realloc(mem, size) (mem)

I also think that's the best idea, since I don't think it's performant to
really use realloc() just to shrink a pbuf's payload size.

Also, I'm not sure this would really work, using realloc()  might need some
modifications on the whole core code so that a payload pointer is not being
saved... And since MEM_LIBC_MALLOC was originally only a workaroung for the
broken mem_malloc(), I think that defining mem_realloc to doing nothing is
best.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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