Fix JIT on separate thread
When JIT_IN_SEPARATE_THREAD is defined we generate Reactor routines on
LLVM in a new thread. Since concurrent code generation was enabled by
making ::jit thread-local, we need to assign it the pointer of the
thread that creates the new thread.
Bug: b/153803432
Change-Id: Ia7454ac5823d61a1fb139b337d2af2de3a5104af
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44048Tested-by:
Nicolas Capens <nicolascapens@google.com>
Reviewed-by:
Ben Clayton <bclayton@google.com>
Showing
Please
register
or
sign in
to comment