From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6074E1F44D for ; Mon, 26 Feb 2024 20:12:57 +0000 (UTC) Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id E471F82CB5; Mon, 26 Feb 2024 20:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1708978369; bh=y69N4NFOqrPdLcS5G9pj5nico4T+VJSx+c2hiZP8t9w=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=x71Y53IYi06rBpf2kOgAHWtzT9t9gJ1rrm5IkfQWnMqKsK+sxY+u+bIHa6Dm50PIi 4QbTX2JUnG51/MgGE0cFJye2qSd9yfM2yA4U4AksL4JN2nKPO/6Nn3dOgagZwZMgag A815hzEgucAGNIDPvpwWxYsEl61rGuEZgG1tEFeE= Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2500A82C40 for ; Mon, 26 Feb 2024 20:12:44 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=gXu5HIE4; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=rHpg4btk6vp4nY+36G5IgCGGxQShhitr4TWM7NYNt64=; b=gXu5HIE4rpSs30nBxxeetqUZS8m+hWnlF82JNgsKnzzyN977WyXYJ8Q2TXaoTGp6bBSr N5rNtIVGFkqPuW6yhxfp8uBPCAl9ukxCKgMji7Dk3I2oshzGLEGuklApqCmTdAOq7OE8pe mIO9rwnZQIQtOPrxIuiEdELqFCQhh5VvqJMIlOJ6GYYRLONer+Te2Bko2ZX4EMU+ng194Z fLsD+LiMp2RDEa24HbU5HfURhrcP1WHbYkcQiCoeZ4vHzHsiqGSx5xKD/ys8GgpNv4LFPU 5/VyZYkQbItd1qHkujLJpqRksr0diOvQZEahDBqXlhTMiKE37X6iKXXhDH+2MVdw== Received: by recvd-8595c9677c-6nd8l with SMTP id recvd-8595c9677c-6nd8l-1-65DCF0BB-3 2024-02-26 20:12:43.170428372 +0000 UTC m=+196053.479137755 Received: from herokuapp.com (unknown) by geopod-ismtpd-0 (SG) with ESMTP id wlVzh0ZvQje2ZbLx7Ab0Ew for ; Mon, 26 Feb 2024 20:12:43.148 +0000 (UTC) Date: Mon, 26 Feb 2024 20:12:43 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20306 X-Redmine-Issue-Author: peterzhu2118 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: peterzhu2118 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 93519 X-SG-EID: =?us-ascii?Q?Je5A7G63GhfECAlIirw6sGXmOX2lHebfQJh1Ny5404yZTMLDoRFxOJ=2FeRh30W+?= =?us-ascii?Q?VG3jKN3IIMvrTc6x81xc9blLAXOXOoA9wb31uxX?= =?us-ascii?Q?25tZKR6egCXEd6YouJKyvcfHbnh7CGKdQsDHAXX?= =?us-ascii?Q?Mq0PoUiTPmggcmPey0li+AXBF=2FOqBqzjqpjqJmD?= =?us-ascii?Q?g2jdOKZclqDejM12M=2FaZcsQb3GBGhAtTcg7zW8Z?= =?us-ascii?Q?lVp52VnZUY=2FgTvL5kk7+Il6gao9YsXrhV03gQGR?= =?us-ascii?Q?qBfhEBcvkcKeFXpgyaqvg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: JPPHMVK2K2PPHIOHCIHOTJZC36QZLYTK X-Message-ID-Hash: JPPHMVK2K2PPHIOHCIHOTJZC36QZLYTK X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:116963] [Ruby master Feature#20306] Add rb_free_at_exit_p List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "peterzhu2118 (Peter Zhu) via ruby-core" Cc: "peterzhu2118 (Peter Zhu)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20306 has been reported by peterzhu2118 (Peter Zhu). ---------------------------------------- Feature #20306: Add rb_free_at_exit_p https://bugs.ruby-lang.org/issues/20306 * Author: peterzhu2118 (Peter Zhu) * Status: Open ---------------------------------------- GitHub PR: https://github.com/ruby/ruby/pull/10104 >From ticket [#20290](https://bugs.ruby-lang.org/issues/20290#note-6), 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. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/