Re: [rvm-research] Wide CAS in Jikes

Erik Brangs <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hi,

On 05.08.2013 19:31, nachshon cohen wrote:
> Does the Jikes RVM contain Wide CompareAndSwap instruction?
> (cmpxchg8b, atomically compare 8 bytes to old value, and if equal write
> new value).

Magic.attemptLong(..) is currently implemented using cmpxchg8b on IA32.

There are also some methods for synchronization in
org.jikesrvm.scheduler.Synchronization. Methods in that class (e.g.
tryCompareAndSwap(..)) use barriers if the garbage collector requires them.


Kind regards,

Erik Brangs

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.