Commit 20612276 authored by Ian Lynagh's avatar Ian Lynagh

Don't use thread local storage on x86/not-Linux

With the
    On x86, use thread-local storage instead of stealing a reg for gct
patch, on Windows and OS X:
    error: thread-local storage not supported for this target
parent 174dccda
......@@ -209,11 +209,11 @@ extern gc_thread **gc_threads;
#define SET_GCT(to) gct = (to)
#if defined(sparc_HOST_ARCH) || defined(i386_HOST_ARCH)
#if defined(sparc_HOST_ARCH) || (defined(i386_HOST_ARCH) && defined(linux_HOST_OS))
// Don't use REG_base or R1 for gct on SPARC because they're getting clobbered
// by something else. Not sure what yet. -- BL 2009/01/03
// Using __thread is better than stealing a register on x86, because
// Using __thread is better than stealing a register on x86/Linux, because
// we have too few registers available. In my tests it was worth
// about 5% in GC performance, but of course that might change as gcc
// improves. -- SDM 2009/04/03
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment