floitsch 02/20/2025 08:07 PMSo the problem is, that Toit does garbage collection. However, it doesn't do it when new and malloc fail. So if your code encounters OOMs you have to call the Toit GC and try again.
You could, in theory, patch the new
that caused problems and do that automatically (after all, we were not allowed to call it), but it wouldn't do anything for malloc
calls.