Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 48477 invoked from network); 15 Dec 2007 06:33:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2007 06:33:44 -0000 Received: (qmail 86591 invoked by uid 500); 15 Dec 2007 06:33:32 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 86564 invoked by uid 500); 15 Dec 2007 06:33:32 -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 86555 invoked by uid 99); 15 Dec 2007 06:33:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 22:33:31 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of icyrong@gmail.com designates 209.85.198.189 as permitted sender) Received: from [209.85.198.189] (HELO rv-out-0910.google.com) (209.85.198.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Dec 2007 06:33:10 +0000 Received: by rv-out-0910.google.com with SMTP id k20so1278736rvb.0 for ; Fri, 14 Dec 2007 22:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=RtvHoxbRZIHsxDgMZLtbLy+tCeHphtLbO4Xb13zlIyE=; b=dgVuk9rVHUg45GRs2+oTIrMH/AhuPoXXZSx5JTTYjDv2DI0RJ+1Qy9AQUhKAVojqs5eOLiOwIeQSNFIp2ffEgOsL2n7enWjZJuW8PemI1+ChSF34eUNKsF3SHEvgkQfz3L33xYWEMwojVYErfy4TVJ62DDwigyYIr9ZKg6URgwM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lLwRFzRWQ8izmgYc0BSWx9qBF9L4SUJBVuEKEQne/YGQV9dQdddIv/DUhsACSawTW7Y1ob7RBXmo7AtbxCn9c8xfSo6UPtRbBaplYVFFyzQQ5zsgqDYm4vonL27TfuUMvNQN4arzi5z+fpqBObQx93dWDg7gUPA/Y8Ilzfiv9Hc= Received: by 10.141.1.2 with SMTP id d2mr2544520rvi.42.1197700393640; Fri, 14 Dec 2007 22:33:13 -0800 (PST) Received: by 10.141.99.13 with HTTP; Fri, 14 Dec 2007 22:33:13 -0800 (PST) Message-ID: Date: Sat, 15 Dec 2007 14:33:13 +0800 From: "=?GB2312?B?yrezycjZ?=" To: dev@harmony.apache.org Subject: Re: [drlvm][jitrino] In-Reply-To: <9623c9a50712140100u6cd09712oef1cf1d2557623a9@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3534_27152966.1197700393635" References: <9623c9a50712140100u6cd09712oef1cf1d2557623a9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3534_27152966.1197700393635 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I still have 2 questions. First, I know in the Thread Manager, it is the hythread_thin_monitor_try_enter method to aquire the mutex lock and implement the *memory barrier.* But* *I looked into the code of this method, didn't find any memory barrier operations(including the apr_memory_rw_barrier() call and cmpxchg operation) when it is the fat lock. when aquiring the fat lock, it calls the hythread_monitor_try_enter method. In the hythread_monitor_try_enter method* there isn't *memory barrier operations, but has a call of the *hymutex_trylock* method. Does the hymutex_trylock method also has barrier effect built-in? Second, when exit the synchoronized area, it should release the mutex lock and flush the local memory to the main memory. But the hythread_thin_monitor_exit method only release the mutex lock and I don't find any flushing operation in hythread_thin_monitor_exit method. I think there must be some mistakes of my idea, hoping for your advice. > Thanks, > Chengrong > > > > ------=_Part_3534_27152966.1197700393635--