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=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A5BB41F44D for ; Thu, 14 Mar 2024 09:43:33 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=Mx3RKjmk; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=cW8OKTsJ; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id AA50983363; Thu, 14 Mar 2024 09:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1710409407; bh=XghgMPA+sH+kSWNIwu7D0GGY4JKWPsf08GHny2NOL+c=; 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=Mx3RKjmk3cZ7wYSXQOxz4BTyL4EPQS7P/KQwvZEPOIZnSHVhxv41fTvyW/C2Gpf/0 7xGGUe3D77jnxzr7DK82mporZf5dJQaqPJT3p1NNplpUMDgxc2Y3znGkQUf1jfnG7W 4vnqZNWHFHFZsPAw3BPI5aODtto4ayAQdijWt/iY= Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id A5A9483355 for ; Thu, 14 Mar 2024 09:43:24 +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=cW8OKTsJ; 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=ak4GqbyDVQYObrAWSRy/OWABWYoZ0TLSRIZFNk37IeY=; b=cW8OKTsJa4kJt13QWFSDOVenn/dzGCGUFeSGMT/n5U2pd3KTIX88r/5ad7uakiPNYicE CHDsr96BKspVxYn0KV0/+3aJOw405b/ceMp98jkaNpQKByDrkljp2L5frFsZQTf9JTZDpZ ITGMquNnprHoRgTgtPKltnkj8Ocd53vj1cvtnf72vtjth2AzZBgwBx9NPaVq3E6D0Rz6so 8r4ylgq8rfhW7lu6s0MO+3/H2Rd1putM13hp6IMljD1H1608V6g//q/5vxPYKS3qj4hLLk j70kzM67Q2a1s0SaVBB/ddD3Y9PPeQKR9DhFaRkGGxGjvqmdgAG7IP96NZ5RKIyg== Received: by filterdrecv-5568fdb67c-q4bvw with SMTP id filterdrecv-5568fdb67c-q4bvw-1-65F2C6BA-11 2024-03-14 09:43:23.040616969 +0000 UTC m=+816534.269488231 Received: from herokuapp.com (unknown) by geopod-ismtpd-30 (SG) with ESMTP id B9ibJDsNQzaCjVhX3-X2IA for ; Thu, 14 Mar 2024 09:43:22.818 +0000 (UTC) Date: Thu, 14 Mar 2024 09:43:23 +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-Assignee: peterzhu2118 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: mame 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: 93717 X-SG-EID: =?us-ascii?Q?u001=2Ep+ckLDtT+4Y5c+H0YCkEnsuWiCQmn3OZA=2F9FzjoR6ZZlPaMv54M7EFoSM?= =?us-ascii?Q?CX5Trc79ep2R5F+0oYS4n23jq1cv4HDOqzMPJn2?= =?us-ascii?Q?zdtsXZOmQ34oFYDKBSnNlPq=2F54dbyMG=2FnAH1ljV?= =?us-ascii?Q?Y9iqnBg7ZOMWjoO2rVh51KiNFKGQq=2Fkdi87q0pQ?= =?us-ascii?Q?BMKrDg50E0oxQv+DxKtPAaGBo5W396+f6AXS+d1?= =?us-ascii?Q?EpXU+ZH65aXeXREUbXVC89eD1rII4RauVm7jrvu?= =?us-ascii?Q?q6Z0YXT=2F0+wg3dt2NqC+gMuPjw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: IZTXGHZYOJ7MSHXH7LLAZPWIT2VTRMYH X-Message-ID-Hash: IZTXGHZYOJ7MSHXH7LLAZPWIT2VTRMYH 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:117151] [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: "mame (Yusuke Endoh) via ruby-core" Cc: "mame (Yusuke Endoh)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20306 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to peterzhu2118 (Peter Zhu) Discussed at the dev meeting, and @matz said "go ahead". ---------------------------------------- Feature #20306: Add rb_free_at_exit_p https://bugs.ruby-lang.org/issues/20306#change-107238 * Author: peterzhu2118 (Peter Zhu) * Status: Assigned * Assignee: peterzhu2118 (Peter Zhu) ---------------------------------------- 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/