Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 3910 invoked from network); 28 Oct 2007 11:05:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2007 11:05:51 -0000 Received: (qmail 11291 invoked by uid 500); 28 Oct 2007 11:05:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 11274 invoked by uid 500); 28 Oct 2007 11:05:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 11265 invoked by uid 99); 28 Oct 2007 11:05:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Oct 2007 04:05:38 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Oct 2007 11:05:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D3F3E1A9832; Sun, 28 Oct 2007 04:05:26 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r589332 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Date: Sun, 28 Oct 2007 11:05:26 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071028110526.D3F3E1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Sun Oct 28 04:05:25 2007 New Revision: 589332 URL: http://svn.apache.org/viewvc?rev=589332&view=rev Log: Partial fixes for FreeBSD. Calling pthread_attr_init on Linux too since I believe it is also recommended on that platform too. Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp?rev=589332&r1=589331&r2=589332&view=diff ============================================================================== --- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp (original) +++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Sun Oct 28 04:05:25 2007 @@ -46,6 +46,9 @@ #include #include +#if defined(FREEBSD) +#include +#endif #include #include "method_lookup.h" @@ -240,7 +243,13 @@ size_t stack_size; pthread_t thread = pthread_self(); + err = pthread_attr_init(&pthread_attr); + assert(!err); +#if defined(FREEBSD) + err = pthread_attr_get_np(thread, &pthread_attr); +#else err = pthread_getattr_np(thread, &pthread_attr); +#endif assert(!err); err = pthread_attr_getstack(&pthread_attr, &stack_addr, &stack_size); assert(!err); @@ -321,7 +330,7 @@ common_guard_stack_size = find_guard_stack_size(); - common_guard_page_size =find_guard_page_size(); + common_guard_page_size = find_guard_page_size(); // stack should be mapped so it's result of future mapping char* res;