Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ojPublic

Rb_gc_register_address usage#815

aardvark179 started this conversation inGeneral
Aug 24, 2022· 1 comments· 2 replies
Discussion options

Is there a reason for registering all the constants defined under theOj 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.

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

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.

You must be logged in to vote
2 replies
@aardvark179
Comment options

Ah, and because you are referring to them by the static variable this could be an issue.

the Ruby C API is hell.

@ohler55
Comment options

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@aardvark179@ohler55

[8]ページ先頭

©2009-2025 Movatter.jp