Project

General

Profile

Actions

Bug #16789

closed

Compaction callback for C extensions not documented

Added by mooreds (Dan Moore) almost 4 years ago. Updated over 3 years ago.

Status:
Closed
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.)

Actions

Also available in: Atom PDF

Like0
Like0