Rb_gc_register_address usage #815
aardvark179
started this conversation in
General
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. |
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
-
Is there a reason for registering all the constants defined under the
Oj
module explicitly with the go? It appears to have been done earlier this year, but I don’t see a corresponding bug.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.
Beta Was this translation helpful? Give feedback.
All reactions