Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork262
Rb_gc_register_address usage#815
-
Is there a reason for registering all the constants defined under the it shouldn’t be necessary as those constants are references from the module, and so will live as long as it does. just trying to understand why they were added rather than simply removing them while refactoring the marking code. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 2 replies
-
With compaction the values may move so the constants would no longer point to the correct value. Compaction is relatively new for Ruby so it was not needed before that feature was added. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ah, and because you are referring to them by the static variable this could be an issue. the Ruby C API is hell. |
BetaWas this translation helpful?Give feedback.
All reactions
-
It certainly takes a bit of knowledge to comply with and without much documentation on all the API calls it can get tough to work with. |
BetaWas this translation helpful?Give feedback.