You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2026. It is now read-only.
Redlander objects (i.e. Redlander::Model, Redlander::Statement, etc) define a finalizer to free up the corresponding C pointers, however the finalizer never seems to be called. The following snippet shows this symptom:
require'redlander'includeRedlanderModel.newputs"count after Model new: #{ObjectSpace.each_object(Model).count}"# => count after Model new: 1GC.startputs"run garbage collector; full mark and sweep"# => run garbage collector; full mark and sweepObjectSpace.each_object(Model).countputs"count after GC: #{ObjectSpace.each_object(Model).count}"# => count after GC: 1
Here the Model.new reference is not retained so the allocated object should be freed, however we see the same number of allocations of the Model object.
Redlander objects (i.e.
Redlander::Model,Redlander::Statement, etc) define a finalizer to free up the corresponding C pointers, however the finalizer never seems to be called. The following snippet shows this symptom:Here the
Model.newreference is not retained so the allocated object should be freed, however we see the same number of allocations of theModelobject.