I think I need to keep a reference on Ruby’s side to avoid the object being reclaimed by GC, but how should I do it properly? Has Ruby provided methods for such a thing?
And I need to pin the object by Fiddle to the object being moved by GC.
Anything else I need to do?