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? Thanks, Sarah Thompson
On Mon, 18 Sep 2006, Sarah Thompson wrote:> 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?The interpreter hasn't been made explicitly thread-aware. The JIT has though, it will use pthread mutexes to protect itself. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Apparently Analagous Threads
- [LLVMdev] lli in interpreter mode and external native libraries
- [LLVMdev] lli in interpreter mode and external native libraries
- [LLVMdev] lli in interpreter mode and external native libraries
- [LLVMdev] June 2007 LLVM Developer's Meeting
- [LLVMdev] GenericValue changes from 1.8 to 2.0