Newsgroups: comp.arch
From: "Chris Thomasson" <cris...@comcast.net>
Date: Thu, 17 Aug 2006 21:39:22 -0700
Local: Fri, Aug 18 2006 12:39 am
Subject: Re: Why no double wide compare and swap on Sparc?
news:W7adnZTvqanypxLZnZ2dnUVZ_o-dnZ2d@comcast.com...
> Chris Thomasson wrote: Good point. Do you happen to know if they implemented it so they could >> "Joe Seigh" <jseigh...@xemaps.com> wrote >>>What's with the Sparc architects? >> IMHO, I believe the major reason 32-bit architectures support DWCAS was >> A 32-bit application cannot use DWCAS to manipulate a pointer along with >> struct dosent_work_on_64_bit_s { >> IMO, the hardware architects' did NOT have lock-free algorithms in mind > IBM S370 had double wide compare and swap long before 64 bit support successfully pop from a lock-free stack? I wonder.... Humm... Microsoft is using cmpxchg8b for the IBM FreeList algorithm with a Also, what the heck was that cmp8xchg16 thing for Itanium all about? Humm... ;) IIRC, Microsoft has to implement some special modifications to their >>>There's a bit of a disconnect here I think. I wonder why they are messing around with KCSS software emulations that run >> Perhaps they are designing the lock-free algorithms for a upcoming > They've done a bit on STM (software transactional memory). If they did very poorly on SPARC64. Actually, they "really" don't need STM or HTM to implement robust lock-free algorithms' on 64-bit architectures... Not at all... Seems that they have discovered all of the tricks yet, eh? Perhaps... > So it would I agree. I also have some problems with obstruction-free algorithms. > have to be hidden behind some system or library api with alternate > implementations on non TM platforms. That would limit its applicability. > For example, you couldn't have atomically thread-safe refcounted smart > pointers. Well, not without RCU and/or SMR. If they go with STM to > compliment hw TM, it's only going to work at a lower contention level > if the STM algorihtm is only obstruction-free. Paticuallry, issues that deal with forward progress. http://groups.google.com/group/comp.arch/msg/9b00fda2752966f9 http://groups.google.com/group/comp.arch/msg/335aeb22fd6fe526 I don't really trust obstruction-free algorithms. They don't seem to like to > It's a big problem. You can design efficient synchronization mechanisms Well, after looking at their implementation of a LL/SC emulation... And > that are portable if you ignore Sparc. If you want portability to > Sparc you have to sacrifice performance or functionality. reading about how one of their lock-free reference counting has to depend on it... Makes we want to totally agree with you... :) Humm. However, I think have to disagree here Joe... Well, FWIW, I have my > If Sun has a 64 bit JVM implementation, I wonder what they do for Ditto for AMD64... Yikes! > the AtomicMarkedReference and AtomicStampedReference implementations > for non Sparc platforms. Cripple them so they perform as poorly as > the Sparc implementations? ;) Humm... It is their fault if they rely on a lock-free algorithm that is not :O You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||