Return-Path: X-Original-To: apmail-stdcxx-dev-archive@www.apache.org Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF2FDD6B1 for ; Thu, 27 Sep 2012 11:18:10 +0000 (UTC) Received: (qmail 40141 invoked by uid 500); 27 Sep 2012 11:18:09 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 40059 invoked by uid 500); 27 Sep 2012 11:18:09 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 39462 invoked by uid 99); 27 Sep 2012 11:18:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 11:18:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.34.174.152] (HELO hates.ms) (64.34.174.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 11:18:00 +0000 Received: from [192.168.72.105] (unknown [166.57.38.196]) by hates.ms (Postfix) with ESMTPSA id D46EE6BC001 for ; Thu, 27 Sep 2012 11:17:39 +0000 (UTC) Message-ID: <50643520.6030706@hates.ms> Date: Thu, 27 Sep 2012 07:14:40 -0400 From: Liviu Nicoara User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: [jira] [Closed] (STDCXX-1066) SPARCV8 requires pthread_mutex_t and pthread_cond_t to be aligned on an 8-byte boundary References: <1259731178.125961.1348617367806.JavaMail.jiratomcat@arcas> <50624966.1030308@hates.ms> <5062F49B.5010607@hates.ms> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/27/12 07:15, Pavel Heimlich, a.k.a. hajma wrote: > 2012/9/26 Liviu Nicoara : >> On 09/26/12 05:49, Pavel Heimlich, a.k.a. hajma wrote: >>> >>> 2012/9/26 Liviu Nicoara : >>>> >>>> On 9/25/12 7:56 PM, Stefan Teleman (JIRA) wrote: >>>>> >>>>> >>>>> >>>>> [ >>>>> >>>>> https://issues.apache.org/jira/browse/STDCXX-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>>>> ] >>>> >>>> >>>> >>>> Anybody around here, except Stefan, who has access to a SPARC V8 machine >>>> updated to the specified kernel update or later, and who is willing to >>>> run a >>>> simple test program? It's a 5 minute job at most. >>> >>> >>> Please point me to the test program. >> >> >> Hi Pavel, >> >> I attached it. IIRC Solaris had both Solaris threads API and a POSIX threads >> API on top of it. Could you please give it a run with MUTEX defined to both >> mutex_t and pthread_mutex_t? Might need to tweak the includes. > > Here it is, the define seems to make no difference. > BTW I'm not sure about the bug description, was Solaris 10 ever > supported on a sparcv8? I ran it on the crappiest machine I could > find, but all that is sparcv9. > > > Sun Blade 1000 - UltraSPARC-III+(sparcv9), running Solaris 10u9 > bash-3.00# /opt/SUNWspro/bin/CC a.cpp > bash-3.00# ./a.out > 24 > ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 > ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 > bash-3.00# /opt/SUNWspro/bin/CC -xarch=v8 ./a.cpp > bash-3.00# ./a.out > 24 > ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 > ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 > bash-3.00# vi a.cpp (<--- pthread_mutex_t) > bash-3.00# /opt/SUNWspro/bin/CC a.cpp > bash-3.00# ./a.out > 24 > ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 > ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 > bash-3.00# /opt/SUNWspro/bin/CC -xarch=v8 ./a.cpp > bash-3.00# ./a.out > 24 > ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 > ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 > > HTH Very much appreciated. Liviu