On 08/02/2021 06:14, Sebastian Huber wrote:


We already have a ticket for this:


https://devel.rtems.org/ticket/3982

I am not sure how to fix this. Maybe we should force the sbrk() support to first give us all the memory of the system. Another approach is to remove the sbrk() support. What is the benefit of it?

Another approach is to remove the greedy allocation functions and test the no memory conditions differently. We could wrap the allocator function and let if fail every n-the call. With this you can write generic tests like:

for i=1,2,...

   let allocate fail in i-th call

  p = test()

  if p != NULL:

        done

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to