Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 26249 invoked from network); 24 Jan 2006 11:37:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 11:37:11 -0000 Received: (qmail 54692 invoked by uid 500); 24 Jan 2006 11:36:59 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 54620 invoked by uid 500); 24 Jan 2006 11:36:58 -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 54608 invoked by uid 99); 24 Jan 2006 11:36:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 03:36:58 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_IN_SORBS_WEB,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 217.158.94.220 is neither permitted nor denied by domain of t.p.ellison@gmail.com) Received: from [217.158.94.220] (HELO cirrus.purplecloud.com) (217.158.94.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 03:36:57 -0800 Received: (qmail 40002 invoked from network); 24 Jan 2006 11:36:36 +0000 Received: from blueice1n1.uk.ibm.com (HELO ?9.20.183.163?) (195.212.29.67) by smtp.purplecloud.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 24 Jan 2006 11:36:36 +0000 Message-ID: <43D61143.40404@gmail.com> Date: Tue, 24 Jan 2006 11:36:35 +0000 From: Tim Ellison User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: java.util.concurrent implementation References: <8cca42d80601230912n3bb9118cx78ed49d6abb65510@mail.gmail.com> <43D5F288.9030106@gmail.com> <8cca42d80601240315q61595cf4pb3aeeba301058b97@mail.gmail.com> In-Reply-To: <8cca42d80601240315q61595cf4pb3aeeba301058b97@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N OK -- thanks Rodrigo. Those types of atomic ops are not in the OSMemory type right now. If we get the concurrent code we can look at the full set of requirements and implement them in classlib. Regards, Tim Rodrigo Kumpera wrote: > util.concurrent needs two pieces of "unsafe" functionality: atomic > operations like compare and set, compare and increment, etc; and field > offset discovering needed by AtomicIntegerFieldUpdater, for example. > The other parts don't require special handling besides LockSupport > with would benefit from som changes in java.lang.Thread. > > > > On 1/24/06, Tim Ellison wrote: >> AIUI the Unsafe type is Sun's means of manipulating OS heap memory -- >> classlib has a type that does that (currently in NIO module, and called >> com.ibm.platform.OSMemory, though I agree with Paulex that it should >> move into LUNI). If the functionality of OSMemory is lacking we can, of >> course, extend it to support concurrent. >> >> Regards, >> Tim >> >> Rodrigo Kumpera wrote: >>> Can we import the backport of jsr-166 as the starting point for >>> implementing this package? It's released as public domain, so there >>> should be not license issue IFAIK. >>> >>> There are only a few things required make it work, like removing >>> references to com.sun.Unsafe. >>> >> -- >> >> Tim Ellison (t.p.ellison@gmail.com) >> IBM Java technology centre, UK. >> > -- Tim Ellison (t.p.ellison@gmail.com) IBM Java technology centre, UK.