Re: Great(?) idea [was: Re: [Sablevm-developer] Porting SableVM to ia64 done in 3 (lazy) hours]
Brought to you by:
egagnon
From: Etienne M. G. <eti...@uq...> - 2002-10-11 19:51:19
|
On Fri, Oct 11, 2002 at 09:28:22PM +0200, Grzegorz Prokopski wrote: > The question is mainly to Etienne... > > Instead of doing > > static inline jboolean > _svmh_compare_and_swap (volatile _svmt_word *pword, _svmt_word > old_value, ... > why not just use this construction: > > #include <asm/system.h> > return (cmpxchg((pword), (old_value), (new_value)) == (old_value)) ... > We could have all Linux arches supported in 24 hours! ;-) > Why shouldn't we use it? As long as we add a "#ifdef LINUX" (or the equivalent), we could do it. Is there an equivalent for "iflush()"? Then we would get the inline-threaded engine to work too... :) Etienne -- Etienne M. Gagnon http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |