From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id A2DFB1F4C0 for ; Mon, 28 Oct 2019 23:26:26 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id CB02C120905; Tue, 29 Oct 2019 08:26:16 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id A7EAF120903 for ; Tue, 29 Oct 2019 08:26:15 +0900 (JST) Received: by filter0043p3iad2.sendgrid.net with SMTP id filter0043p3iad2-29740-5DB77918-B8 2019-10-28 23:26:16.963606334 +0000 UTC m=+272.156061219 Received: from herokuapp.com (unknown [34.230.24.207]) by ismtpd0088p1iad2.sendgrid.net (SG) with ESMTP id cksoBuMuRVWBxNv3w2tX8g for ; Mon, 28 Oct 2019 23:26:16.828 +0000 (UTC) Date: Mon, 28 Oct 2019 23:26:16 +0000 (UTC) From: tenderlove@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71169 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16282 X-Redmine-Issue-Author: tenderlovemaking X-Redmine-Sender: tenderlovemaking 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-SG-EID: =?us-ascii?Q?lWh=2FbSnEjJFRTUHRj45oOQBme8zohdTU9K3TxrDAbWIpv1yQdTymXv2l2FW+2Z?= =?us-ascii?Q?2=2FaxMDSP+Rs+1t2TrSVyg5tbKKol9eey9jwFPX3?= =?us-ascii?Q?huWXy9jBq0UR1LXGR6APlfo5eXsc=2FMzXBTMcQMy?= =?us-ascii?Q?epHKa+EcpPKs=2Fy0X7AnyYSmd3Dugc68eZgR4CO5?= =?us-ascii?Q?6rl54G80DzM6gSSbApRsDme37kBTaKgg6wA=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95576 Subject: [ruby-core:95576] [Ruby master Feature#16282] Add "call data" wrapper IMEMO object so inline cache can be updated X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16282 has been reported by tenderlovemaking (Aaron Patterson). ---------------------------------------- Feature #16282: Add "call data" wrapper IMEMO object so inline cache can be updated https://bugs.ruby-lang.org/issues/16282 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Hi, Currently the compactor will invalidate all inline caches. I would like to update references in inline caches so we don't have to invalidate. Most inline caches are reachable from instruction sequences, but one cache is not: https://github.com/ruby/ruby/blob/6147fa82a923e7318f493857023006801ed25eb5/internal.h#L2395 This static variable can't be reached from the GC. I'd like to introduce a new IMEMO object that wraps this cache, then the GC can reach the cache and update the value. I've attached a patch that implements the new IMEMO object, and also removes the restriction on GCC so that all compilers get the cache hit. Does this seem OK shyouhei, ko1? ---Files-------------------------------- 0001-Wrap-call-data-with-an-IMEMO-object.patch (3.8 KB) -- https://bugs.ruby-lang.org/