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: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 125DC1F61A; Sat, 20 Aug 2022 21:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1661031324; bh=2xbjBdUAf4YRnBiQLf5f0RCixO0dJOSQtbn0civ0/1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2GzOlxbmRS7qDUTPJGkd5w+APj7lT/r3lEUH+SN7z12RU2LPN8NP/sKjNoJa+J2VL ATh+7maSr0dkdcx6Q5K7LGKvpjPvskL5P7QOROzpNu222td45gspoVnWew45eDXX0c XXkEBzAAzpf9m6X1Wo5FegyT3II5TfhhJfLcU8FI= From: Eric Wong To: Cc: Sam Saffron Subject: [PATCH 3/3] disable HeapPageBody count test for Ruby 3.1 Date: Sat, 20 Aug 2022 21:35:23 +0000 Message-Id: <20220820213523.18504-4-e@80x24.org> In-Reply-To: <20220820213523.18504-1-e@80x24.org> References: <20220820213523.18504-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Ruby 3.1+ uses mmap on platforms relevant to us, so we currently can't account for it with various malloc wrappers. Tested on Ruby 3.1.2, this is the only change necessary to support 3.1.x so far; but the functionality is gone unless we decide to wrap mmap, as well. --- test/test_mwrap.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_mwrap.rb b/test/test_mwrap.rb index fadaef6..c506554 100644 --- a/test/test_mwrap.rb +++ b/test/test_mwrap.rb @@ -309,7 +309,9 @@ class TestMwrap < Test::Unit::TestCase gen <= GC.count && gen >= 0 or abort "bad generation: #{gen}" (0 == (addr & 16383)) or abort "addr not aligned: #{'%x' % addr}" end - nr == ap or abort "HeapPageBody.each missed page #{nr} != #{ap}" + if RUBY_VERSION.to_f < 3.1 # 3.1+ uses mmap on platforms we care about + nr == ap or abort "HeapPageBody.each missed page #{nr} != #{ap}" + end 10.times { (1..20000).to_a.map(&:to_s) } 3.times { GC.start } Mwrap::HeapPageBody.stat(h)