Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
magicMirror707543dWhy do you care?
Works? don't touch. or you get garbage all over you...
And it must move the pages around. otherwise the heap will always grow, and never get smaller...
magicMirror707542dtri color, non compacting, non generational.... prefer value arrays instead of pointers arrays... prefer thread local over globals....
500ms gc runs.
More reading required.
magicMirror707542d@metamourge storing go ptr, in c memory?
thats a seg fault waiting to happen.
Go has no way to track the pointers. so if an object has no root - it will be collected. C will try to access - seg fault.
Otherwise - you just created a new permanent root. That will never be released.