Replies: 1 comment 2 replies
-
The trickiest problem is when a C++ object is freed and a new one is created using the same address. I don't see way that Rice would be able to figure that out. Any C++ created objects would not use Ruby's xmalloc call on creation - instead they will use the malloc call that they are linked against in the std c++ library. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's not a some specific bug, actually, I just want to discuss instance registry problems highlighted in the docs.
I feel like it's possible to reuse
ObjectSpace._id2ref
logic here, and take a look on how gc freesT_DATA
. Or maybe use weakmap.Is it possible to enable the registry only for Ruby-managed instances? Maybe use Ruby's
xmalloc
somehow?Beta Was this translation helpful? Give feedback.
All reactions