New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated FAT file writes can fail after a while #1559
Comments
As mentioned in that post |
…se memory, it reorders the free list) (#1559)
Leaving open as perhaps we can find a way of making sure the free list stays ordered enough without GC. Also the LOW_MEMORY flag. |
Just to add to this, there have been a bunch of recent changes to help with fragmentation and flat string allocation. The original test (under Linux with 500 vars) now works perfectly. |
http://forum.espruino.com/conversations/327385/#comment14500269
(Modified
This'll happen on linux builds if you set
'variables' : 500
.allocateJsFile
fails because it can't allocate a Flat String.Actually looking at this, it fails to make one from the freelist, runs GC, but GC doesn't free anything (despite reordering the free list) so it never tries again! Shouldn't be too hard to fix.
The text was updated successfully, but these errors were encountered: