Skip to content

Fix memsize function for embedded types#992

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-memsize-embedded
Jun 5, 2026
Merged

Fix memsize function for embedded types#992
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-memsize-embedded

Conversation

@byroot

@byroot byroot commented Jun 5, 2026

Copy link
Copy Markdown
Member

We shouldn't report the size of the embedded struct.

We shouldn't report the size of the embedded struct.
@byroot byroot force-pushed the fix-memsize-embedded branch from b21f3c5 to f4d20e9 Compare June 5, 2026 07:44
@byroot byroot merged commit b1a0891 into ruby:master Jun 5, 2026
42 checks passed
@nobu

nobu commented Jun 5, 2026

Copy link
Copy Markdown
Member

"Embeddable" doesn't mean "embedded" always, I guess.

@byroot byroot deleted the fix-memsize-embedded branch June 5, 2026 09:06
@byroot

byroot commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

@nobu this is handled by the TypedDate API: https://github.com/ruby/ruby/blob/2dd77a0dcd1f634d7787e62d1d735147fd73d99a/gc.c#L1224-L1226

@nobu

nobu commented Jun 5, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants