-
Hi folks, I've been bruising my forehead on my desk over this for a while now and I'm wondering if I'm doing something wrong here (quite likely, embedded dev is not my day job, my day job uses a substantially higher-level language + platform, but I digress), if there's a bug, if this is expected behaviour, etc. Using the skeleton project in this gist, I've observed some strange behaviour when trying to allocate memory externally, but only when the external PSRAM is not part of the global heap. Summary:
What sent me down this rabbit hole was when I was trying to diagnose an apparent memory leak in my own project's code, where I'm attempting to strip out JSON elements I don't care about while I'm reading from the socket, as opposed to after (payloads can be multiple mb and are not newline delimited standalone JSON docs that every other streaming JSON parser under the sun expects). I kept finding that despite going well out of my way to ensure nothing is carried in memory across awaits that I don't want to be carried, memory usage kept creeping up and up, until eventually the alloc would fail. I also tried using This suggests to me that Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Resolved by this PR |
Beta Was this translation helpful? Give feedback.
Resolved by this PR