Exploring Implementing Lox 02 C26 Garbage Collector P0
Let's dive into the details surrounding Implementing Lox 02 C26 Garbage Collector P0.
- here we fixed an error with getCompactSwap" turns out we are also providing new pointers for locations that are outside of the ...
- cleaning up potential memory bugs. we updated all the functions that needs to allocate, namely the ones that creates new object.
- tracing down bug where value is not resolved as upvalue, but as global instead - strings go missing from vm.strings - resolveLocal ...
- learning the system to fix the bug. curr bug - segfaults when it tries to clear an obj that it doesnt have access to.
- fixing the bug of not marking compiler.search table this causes the string representing variable names to be swept unintentionally ...
In-Depth Information on Implementing Lox 02 C26 Garbage Collector P0
base code for chap 26. trying to make the compact not working well... after compact, "current.function.chunk.constants" seems to be wrong, previous its pointing to a valid ... fixing segfault. this particular case is caused by us trying to access a null pointer the reason why it is null is becos it was not ...
strings created in scope are not marked as used - can get corrupted when we allocate new mem for other objects.
That wraps up our extensive overview of Implementing Lox 02 C26 Garbage Collector P0.