ARM: enable interpreter, add locks code

Andrew Haley aph-gcc@littlepinkcloud.COM
Thu Jul 12 13:19:00 GMT 2007


Daniel Jacobowitz writes:
 > On Wed, Jul 11, 2007 at 10:10:19PM -0000, Boehm, Hans wrote:
 > > The problem of course is that this works perectly for some use cases,
 > > e.g. when it's used to implement test-and-set for a spin-lock.  And it
 > > probably almost never fails on a uniprocessor.  I'd expect it to do
 > > fairly badly on a multicore processor for use cases for which the
 > > atomicity really matters.
 > 
 > Yes, that's right.  There has only been ARM multi-core support in the
 > Linux kernel for a brief while (the last year or so); over the ten
 > year life of the ARM LinuxThreads port I believe this issue was
 > discovered by inspection twice, but encountered in practice never.

Quite.  There are many things that we can worry about, but I'm quite
happy to wait for this to be fixed by the LinuxThreads people.

Andrew.



More information about the Gcc-patches mailing list