Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 52949 invoked from network); 9 Mar 2007 16:49:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 16:49:07 -0000 Received: (qmail 57182 invoked by uid 500); 9 Mar 2007 16:48:35 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 57016 invoked by uid 500); 9 Mar 2007 16:48:33 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 56955 invoked by uid 99); 9 Mar 2007 16:48:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 08:48:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [134.134.136.20] (HELO mga02.intel.com) (134.134.136.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 08:43:42 -0800 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by mga02.intel.com with ESMTP; 09 Mar 2007 08:42:03 -0800 Received: from fmsmsx333.amr.corp.intel.com ([132.233.42.2]) by orsmga001.jf.intel.com with ESMTP; 09 Mar 2007 08:42:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: i="4.14,268,1170662400"; d="scan'208"; a="206707492:sNHT1348451398" Received: from mssmsx411.ccr.corp.intel.com ([10.125.2.10]) by fmsmsx333.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Mar 2007 08:41:56 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [drlvm][threading] using a thread verification tool to find deadlock and race conditions Date: Fri, 9 Mar 2007 19:41:52 +0300 Message-ID: <300B70C65DCD59468957941A60716EBC5EB525@mssmsx411> In-Reply-To: <3b3f27c60703090806g66ff9dd7xfb915f992c80d926@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [drlvm][threading] using a thread verification tool to find deadlock and race conditions Thread-Index: AcdiZPJD+kaMzAQQTVyBQCfi0N6B8gAAwnVg From: "Leviev, Ilia A" To: X-OriginalArrivalTime: 09 Mar 2007 16:41:56.0997 (UTC) FILETIME=[D9E30350:01C76269] X-Virus-Checked: Checked by ClamAV on apache.org Nathan, I think we need to introduce additional build configuration switch to be able to compile this Thread Checker API calls. Thanks, Ilya Leviev -----Original Message----- From: nbeyer@gmail.com [mailto:nbeyer@gmail.com] On Behalf Of Nathan Beyer Sent: Friday, March 09, 2007 7:06 PM To: dev@harmony.apache.org Subject: Re: [drlvm][threading] using a thread verification tool to find deadlock and race conditions How invasive would this be? Would it be always present or a special build? -Nathan On 3/9/07, Leviev, Ilia A wrote: > > Hi, > I have started using http://intel.com/thread_checker_download.zip to > find deadlock and race conditions in the VM. > > First I have checked Harmony which run Hello World > Application and tool have detected about 30 race conditions. But on some > DRLVM kernel tests it shows several hundred problems. > > There some problem of tracking Harmony code by the Thread Checker. > The reason for this is that the Intel Thread Checker supports > interpretation only of standard APIs for Windows and POSIX threading. > Any specially built synchronization constructs that are not part of > Windows > API or POSIX API are not normally tracked by the Thread Checker. > However, the Thread Checker includes the User-Level Synchronization API > that to help gather information related to user-defined synchronization > constructs. > Thus if we use our own synchronization we should inform Thread Checker > runtime about it. Otherwise the tool will generate incorrect diagnostics > and will be useless for us. > > In other words, to gain full benefit from Thread Checker, the VM > developers will need to embed thread checker calls in the > synchronization code. Should we put this on the harmony development > schedule for Q2? > > > Thanks, > Ilya Leviev > Intel Enterprise Solutions Software Division >