lli threads

How does threading work in lli, particularly in interpreted (non-JIT) mode? I've tried to find direct references in the code and couldn't, so am I right in assuming that it's expected that any underlying OS's threading will be used? If so, how does this work with respect to (I assume) needing to maintain explicitly separate execution context stacks for each thread?

Sarah Thompson

The interpreter hasn't been made explicitly thread-aware. The JIT has though, it will use pthread mutexes to protect itself.