Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 92805 invoked from network); 30 Oct 2006 14:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 14:42:51 -0000 Received: (qmail 43831 invoked by uid 500); 30 Oct 2006 14:42:56 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 43793 invoked by uid 500); 30 Oct 2006 14:42:56 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 43782 invoked by uid 99); 30 Oct 2006 14:42:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 06:42:56 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nikolay.kuznetsov@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 06:42:43 -0800 Received: by ug-out-1314.google.com with SMTP id u40so931397ugc for ; Mon, 30 Oct 2006 06:42:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=n9jL4RhT1vMdWYRlJqtjb/b5hJhMB+da8Pm93QygrR8jSezwYoBaycDVmgRgUIqTHH5H0r28HtSKcc2RO3FC9xwZqTd4VNbSny/o2y4JbNyuNYbUaIIf2bhKO70zTUTHXZuBwQeRTD6NHVrr4CTcTZeaZAUxXsuEBvtP46J8aAQ= Received: by 10.67.91.6 with SMTP id t6mr4252596ugl; Mon, 30 Oct 2006 06:42:21 -0800 (PST) Received: by 10.67.119.10 with HTTP; Mon, 30 Oct 2006 06:42:21 -0800 (PST) Message-ID: <8ce6aa550610300642y2e911b6eh91ea9ecdde3b8c9c@mail.gmail.com> Date: Mon, 30 Oct 2006 18:42:21 +0400 From: "Nikolay Kuznetsov" To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] what's the difference between the structure VM_thread and HyThread? In-Reply-To: <005a01c6fc30$a17c1050$2700030a@ictbfan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <005001c6fc20$927c98f0$2700030a@ictbfan> <8ce6aa550610300513p1159f684w466c26288f36e29c@mail.gmail.com> <005a01c6fc30$a17c1050$2700030a@ictbfan> X-Virus-Checked: Checked by ClamAV on apache.org Yes, this data is non threading and separate fields of VM_thread structure should be replaced with independent values (data structures) stored in TLS under separate keys. Nik. On 10/30/06, Fan Bin wrote: > Thanks, so you mean that there is only non threading data currently in VM_thread block, and maybe the VM_thread block will be replaced by TLS in HyThread, right? > > Bin > > ----- Original Message ----- > From: "Nikolay Kuznetsov" > To: > Sent: Monday, October 30, 2006 9:13 PM > Subject: Re: [drlvm] what's the difference between the structure VM_thread and HyThread? > > > > Hello, > > > > this is legacy thread structure. You're right, there was no HyThread > > at first, but VM_thread structure. Also different DRLVM modules used > > to have dedicated fields in this structure. Further it was decided to > > make threading module independent and make usage model of threading > > module the same for all other modules(i.e use thread local storage for > > module specific data). But since VM_thread structure usage was very > > heavy it was also decided to leave all non threading data in VM_thread > > and put it in TLS till better times (I mean, till this data will be > > divided into module depended parts and also put into TLS under > > different keys). > > > > Nik. > > > > On 10/30/06, Fan Bin wrote: > >> Hi all, > >> > >> I'm now reading the lastest version of drlvm. Now I have a question about the thread management module. I see that there are three kinds of control blocks: HyThread, JVMTIThread and VM_thread. What's the difference of their rols? Especially HyThread and VM_thread. As far as I know, there is no HyThread at first. > >> > >> Thanks, > >> Fan Bin