multiple thread jit support on windows ( win32 and win64 )


I am working on a jit engine using multiple threads using llvm 3.0. The multiple thread engine works fine on both linux and maci platforms, but failed when initializing ExecutionEngine from EngineBuilder.create() method when multiple threads are used on windows platform. On win32, the failure happened at the pass registration, and on win64, at the getPermanentLibrary.

Has anyone used multiple thread jit engine before and noticed such problems on windows? If yes, are there any bug fix in llvm 3.2?