]> git.notmuchmail.org Git - notmuch/commit
ruby: enable garbage collection using talloc
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 17 May 2021 19:39:15 +0000 (14:39 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 18 Jul 2021 20:08:53 +0000 (17:08 -0300)
commit1a7f9fe055fb40b9646bb8efac107601009723bd
treed404fe8d5c7fe92c18db56f63a2a53ab1ea6d76f
parent02b162116079a0b2e35823e5590a82056d22c8af
ruby: enable garbage collection using talloc

We basically steal all the objects from their notmuch parents, therefore
they are completely under Ruby's gc control.

The order at which these objects are freed does not matter any more,
because destroying the database does not destroy all the children
objects, since they belong to Ruby now.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
bindings/ruby/database.c
bindings/ruby/defs.h
bindings/ruby/extconf.rb