From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id E3F3F1B00068 for ; Thu, 6 Oct 2016 11:59:12 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id C30D4B5D836 for ; Thu, 6 Oct 2016 12:30:53 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 266E718CC819 for ; Thu, 6 Oct 2016 12:30:54 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 95889120526; Thu, 6 Oct 2016 12:30:53 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5BF4C12047C for ; Thu, 6 Oct 2016 12:30:49 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=IrI5hVGOToiUZmMMfPo2DeRVqZI=; b=DswjO9vUk3WlU1/7BA V/dL5hYEuv5ChRZ0QoQZS/aAXjcca4ojYQ5B+tFAHOi/jgjBTbYip+O3kNLjvWvK Sd0jqvTi5G9CANpUlbS9DHKNcwuOQPrZsrgMIbmrZEVVNIbdDyCLobgJ3sRX+fgm lQDozq6HrPquq1Q8QpKdvuPR8= Received: by filter0460p1mdw1.sendgrid.net with SMTP id filter0460p1mdw1.9283.57F5C56516 2016-10-06 03:30:45.201982397 +0000 UTC Received: from herokuapp.com (ec2-54-221-180-17.compute-1.amazonaws.com [54.221.180.17]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id Wwcus1nRR6--ko4HAAHxeA for ; Thu, 06 Oct 2016 03:30:45.093 +0000 (UTC) Date: Thu, 06 Oct 2016 03:30:45 +0000 From: ryand-ruby@zenspider.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 52343 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 12812 X-Redmine-Issue-Author: zenspider X-Redmine-Issue-Assignee: mame X-Redmine-Sender: zenspider 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6ZW+2oYrYPt9S+yoxoykIENAuD/baZtS2k1j uGnNR09odt1EIFp2fx1iKGQqWk9XUmkJX5rexyXza8oMGRMY9GoMIme49TjM56gpM2SgN5PpwY/mv/ 2r3Vofw6Zt7+zsEnJd2Ee9vux3aCwji6iv55jCkgMK8CJmIa2I67Zc/tIw== X-ML-Name: ruby-core X-Mail-Count: 77496 Subject: [ruby-core:77496] [Ruby trunk Bug#12812] Added Coverage#result= 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 #12812 has been updated by Ryan Davis. This patch url will stay up to date better than a file attachment. I'm getting feedback from Nobu and fixing things: https://github.com/ruby/ruby/pull/1456.patch ---------------------------------------- Bug #12812: Added Coverage#result= https://bugs.ruby-lang.org/issues/12812#change-60762 * Author: Ryan Davis * Status: Assigned * Priority: Normal * Assignee: Yusuke Endoh * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Originally submitted here: https://github.com/ruby/ruby/pull/1456 This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way. Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner. This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016. I should also add, this applies cleanly to (at least) 2.3 as well. -- https://bugs.ruby-lang.org/