[LLVMdev] Thread local data and atomic instructions
Anton Korobeynikov
anton at korobeynikov.info
Sat Nov 21 10:05:08 PST 2009
Hello
> I need a shadow stack per thread and I'm not sure how to do that. Passing it
> everywhere seems like a bad idea. I could put it in a global thread id ->
> thread-local data mapping but that would incur lookup and locking every time
> I fiddle with it (which is often!). Is it possible for me to create a global
> using LLVM and mark it as thread local and use that instead?
In theory - yes, but it will work only on x86/linux. No thread local
stuff on darwin at all, for example.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list