Project

General

Profile

Actions

Feature #20306

closed

Add rb_free_at_exit_p

Added by peterzhu2118 (Peter Zhu) 9 months ago. Updated 9 months ago.

Status:
Closed
Target version:
-
[ruby-core:116963]

Description

GitHub PR: https://github.com/ruby/ruby/pull/10104

From ticket #20290, I found that C extensions could use ruby_vm_at_exit to register hooks to free memory at shutdown. However, they cannot determine whether they should free all memory during shutdown to mirror the behavior of Ruby when RUBY_FREE_AT_EXIT is set.

This ticket proposes a new API called rb_free_at_exit_p that returns true when RUBY_FREE_AT_EXIT is set, and false otherwise.

Actions

Also available in: Atom PDF

Like1
Like0Like0Like0Like0Like0