Project

General

Profile

Bug #16789

Compaction callback for C extensions not documented

Added by mooreds (Dan Moore) 5 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.7.1 and master
[ruby-core:97898]

Description

The compaction callback for C extensions not documented in the extension rdoc.

Here's the section of the C code where the callback is called, if it exists:

https://github.com/ruby/ruby/blob/master/gc.c#L8343

Here's the relevant section of the documentation:

https://github.com/ruby/ruby/blob/master/doc/extension.rdoc#label-C+struct+to+Ruby+object

There's no mention of the compaction callback, optional or not.

Is this because compaction is still a work in progress?

(Sorry for the github links, this is my first bug report. If you'd prefer links from the non mirror repo, let me know and I'll dig them up.)

Updated by jeremyevans0 (Jeremy Evans) about 1 month ago

  • Status changed from Open to Closed

I think this was fixed by 92b2d5816ae04375cef7e3909bf69954e1833160.

Also available in: Atom PDF