On Fri, May 16, 2008 at 5:23 AM, Aaron Feng <aaron.feng@...> wrote:
>> One reasonably easy thing to investigate would be to replace lutexes in
>> SBCL with
>> spinlocks on Darwin -- ask me for details if you are interested in giving
>> it a whirl...
> Not sure if I'm ready for the challenge, but I'm very interested in hearing
> more about it.
Essentially: comment out the def!struct for mutex in
src/code/thread.lisp, define MUTEX-OWNER to call SPINLOCK-VALUE,
MUTEX-NAME to call SPINLOCK-NAME, MAKE-MUTEX to call MAKE-SPINLOCK,
etc. Additionally you need to adjust any type declarations referring
to mutexes to refer to spinlocks instead.
Then try to build, and fix any problems that crop up. Once the build
passes, run tests, and see if they do any better.