Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 41242 invoked from network); 25 Nov 2005 16:39:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Nov 2005 16:39:59 -0000 Received: (qmail 79268 invoked by uid 500); 25 Nov 2005 16:38:49 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 78895 invoked by uid 500); 25 Nov 2005 16:38:46 -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 78231 invoked by uid 99); 25 Nov 2005 16:38:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 08:38:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of a.y.chernyshev@gmail.com designates 66.249.82.202 as permitted sender) Received: from [66.249.82.202] (HELO xproxy.gmail.com) (66.249.82.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 08:40:13 -0800 Received: by xproxy.gmail.com with SMTP id s12so498215wxc for ; Fri, 25 Nov 2005 08:38:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=VwqhVubRBuaeVhuxwsHP+HxkxfXMs0GRLWRpahN/9/N6+SMZceXusnvLJR5Ogk8HN5Ra5EdCn45P9Lc5Q7NQsbe7Jz/H5nb0X49s2V54NV8nUSOdcQyIyROEWLFPmkk0scG4PLvYBhKf8Woi98wJaSv/eVRQynj6RyMzBc7/4Yo= Received: by 10.70.30.16 with SMTP id d16mr938511wxd; Fri, 25 Nov 2005 08:38:20 -0800 (PST) Received: by 10.70.88.18 with HTTP; Fri, 25 Nov 2005 08:38:20 -0800 (PST) Message-ID: <6928c5160511250838j14a76369oaf5f9d6b3440f67c@mail.gmail.com> Date: Fri, 25 Nov 2005 19:38:20 +0300 From: Andrey Chernyshev To: harmony-dev@incubator.apache.org Subject: [arch] Harmony VM & JSR166 integration MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've been thinking a bit about the java.util.concurrent package, and how we might want to approach it here in Harmony. What kind of modifications one may need to do for VM in order to support util.concurrent package in the most efficient way? To my understanding, the original design of the JSR166 implied quite limited support at VM level. It basically included only 3 points of interaction: - System.nanoTime() method (no other means to get nanosecond precision time); - Park/unpark methods for java.util.concurrent.locks.LockSupport class (suspend/resume can't be used for this because of race condition issues); - Field atomic update methods for java.util.concurrent.atomic classes (they might be too slow if implemented via conventional synchronized section) It seems the rest of the code can just be a pure Java. Do people on the list think the above set will be sufficient to achieve the right level of cooperation between VM and util.concurrent? Thank you, Andrey Chernyshev Intel Managed Runtime Division