[LLVMdev] Thread support: desirable or not?

Chris Lattner sabre at nondot.org
Thu May 19 18:12:01 PDT 2005


On Thu, 19 May 2005, Evan Jones wrote:

> On May 19, 2005, at 19:10, Chris Lattner wrote:
>>> Now that 1.5 has been released, would it be possible to have some 
>>> discussion about if linking the JIT with a thread library is the direction 
>>> that should be taken? I don't see any alternative except having separate 
>>> "threaded" and "unthreaded" JITs, and requiring the user to know when the 
>>> different JITs should be used.
>> I think that this is fine.
>
> Does that mean option 1 or option 2 is fine:
>
> 1. Always link the JIT against a platform's thread library so it is always 
> thread-safe.

I would prefer this option.  Ideally the thread model would be selectable 
by the specific tool that links to the JIT (to support user-level thread 
libraries and stuff), but that should be left to a later enhancement.

-Chris

> 2. Build two JITs, one that is thread-safe, and another which is not. Users 
> must manually select the correct JIT.
>
> Evan Jones
>
> --
> Evan Jones
> http://evanjones.ca/
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list