Does esp32 has garbage collection?
Posted: Fri Apr 05, 2024 5:08 pm
Hi all!
I'm running a simple esp32 program which reports free heap and min free heap (no real need but I liked that).
What I found is that at a certain point the min_free_heap went from about 1.82kb to about 62.5kb while the total free heap remained the same.
I'm getting the values using ESP.getFreeHeap() and ESP.getMinFreeHeap().
Can someone please explain why does the min free heap increased? I tought this could not happen.
I'm running a simple esp32 program which reports free heap and min free heap (no real need but I liked that).
What I found is that at a certain point the min_free_heap went from about 1.82kb to about 62.5kb while the total free heap remained the same.
I'm getting the values using ESP.getFreeHeap() and ESP.getMinFreeHeap().
Can someone please explain why does the min free heap increased? I tought this could not happen.