Skip to content
Commit cdf34921 authored by Kuba Brecka's avatar Kuba Brecka
Browse files

[tsan] On OS X, optimize main thread’s ThreadState accesses

This is a very simple optimization that gets about 10% speedup for certain programs. We’re currently storing the pointer to the main thread’s ThreadState, but we can store the state directly in a static variable, which avoid the load acquire.

Differential Revision: http://reviews.llvm.org/D20910

llvm-svn: 271906
parent 2e26d9fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment