From patchwork Fri Apr 20 18:40:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 154101 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id AEB15B6FF1 for ; Sat, 21 Apr 2012 04:40:52 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1335552053; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:Date:Message-ID:User-Agent: MIME-Version:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=VEkW6FRnIzF5lNxkjREPAqxGl28=; b=Q4jA9lIGNEPTI1W LXFgnn1Q+Edf6gooqgc8jBX0Pa4wIZbwzGpZ2qOUppBPg0Hp2+3byiq4oFKDVsXv 1U8qOqRni0hkV0oQ4fWYa2K1l9AtvlxCYFaXpMlOUFOWlIw+V/RY/bOlpDRECSaA UcTQjBUx7pS2xrccGWiHF0CFmZgI= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=e59jmk6k/rynJUfWIydll1Hi/rrDfOpWo5p15CQfNX7Nr6i/lolZAeMSEpmbcH 7oGig91gpkUv5BHx0zPYx78QbhTNwp3X99gUpPTSNhCYE0FiNOzSuGZFXFK8j+PP W3c7PFPbkFEeSylJsJyQxlvMNdLq8EG7MiC/XJ71qkCm0=; Received: (qmail 29600 invoked by alias); 20 Apr 2012 18:40:48 -0000 Received: (qmail 29586 invoked by uid 22791); 20 Apr 2012 18:40:47 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Apr 2012 18:40:34 +0000 Received: by iaag37 with SMTP id g37so14836466iaa.20 for ; Fri, 20 Apr 2012 11:40:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=sCKuN1QszIwYFrKDrFzUecqJ5r8+ByJj7bLT56Vp8NY=; b=Dpckex/r9i+XaEGV4caDYq3i616ohrb1bAzychv2XAjgznV1K7kPDAN/1CVI9MyjXT efMT6tKaf/a1Qym6+/Eehn4YDt2jGnZyb6RyC4SOGcN8xvFfvYzweTuYo7YqTWOza1aQ Hnt53VVrrOL354vSfYyz4luwd2k8RGdXBIi3Y2MoMEoNRP0ZUwAQHLSgt/tLElaiTWZi vSBU2hZFuUIFCq0ZnQpb5EldNBXB0FOZEqO+yem6WCJOeHkqDZLfr9t3Jcvjx8AQJn19 204YJu4lMxeimS4KFpKpUj1SGPfb42OaWGHbxoqIdZ/JyV4Txsb2vXoZP3+2PoE8xfKD nRgw== Received: by 10.50.153.198 with SMTP id vi6mr48587igb.0.1334947233649; Fri, 20 Apr 2012 11:40:33 -0700 (PDT) Received: by 10.50.153.198 with SMTP id vi6mr48577igb.0.1334947233548; Fri, 20 Apr 2012 11:40:33 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:147c:224:d7ff:fe8f:f634]) by mx.google.com with ESMTPS id ke7sm8721966igc.10.2012.04.20.11.40.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 11:40:32 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Disable memory profiling in GC test Date: Fri, 20 Apr 2012 11:40:31 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnbemku2qVGTWnxdKnnx6jM1SsyXFV+lJ70ezuQE5xlkj7zrC9gMzueR/xoVe/j1nx19odmmIaovQA8AyTlygwsLtrbyPNyQPfanoYyrjsNbu0wvb4KiKdn6T6sgGFllisVowb7y7hoaZBEwbbkVHHBWe6kPlXOxXb1iraZ4zsXXr/GqPA= X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This libgo patch disables memory profiling in one of the tests of the garbage collector. This test measures the amount of memory allocated after a loop that allocates and then forgets about a large number of large slices. The test was failing on PPC64 GNU/Linux because that system uses a much larger page size, causing the blocks allocated by the memory profiler to push up system memory usage. This change disables the memory profiler, since it is irrelevant to the test. Ran Go testsuite on x86_64-unknown-linux-gnu and powerpc64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r f50948ccba19 libgo/go/runtime/gc_test.go --- a/libgo/go/runtime/gc_test.go Thu Apr 19 21:54:17 2012 -0700 +++ b/libgo/go/runtime/gc_test.go Fri Apr 20 11:37:32 2012 -0700 @@ -15,6 +15,8 @@ runtime.ReadMemStats(memstats) sys := memstats.Sys + runtime.MemProfileRate = 0 // disable profiler + itercount := 1000000 if testing.Short() { itercount = 100000