es-ude / elastic-ai.runtime.enV5

Elastic-ai.runtime implementation for the Elastic Node version 5.
https://www.uni-due.de/es/en/en_elastic_ai.php
MIT License
3 stars 2 forks source link

List unnecessary mallocs #298

Open glencoe opened 1 month ago

glencoe commented 1 month ago

Throughout the runtime's code many unnecessary and sometimes dangerous calls to malloc are made. This leads to to four problems:

Walk through the source code and note these calls along with severeness and how easy a fix would be.

In a next step we should derive issues, an order and a priority for replacing these calls with other means of memory management, eg., ping pong buffers.

glencoe commented 1 month ago

Building and running HardwareTestUsbProtocol prints

*** panic ***
OUT OF MEMORY

hence stopping work on #302 and continuing here.

glencoe commented 1 month ago

Mallocs

all the rest seems to be hardware test, will skip those for now

glencoe commented 1 month ago

Calloc

The rest seems to live in hardware tests, will skip those for now. We can fix them as we go (boy scout rule)

glencoe commented 1 month ago

Summary

in the following order remove dynamic memory allocation in