commit | 0b7401d3cdb4a2ecd266396ef1a77c8533a4476d | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Sat Aug 22 00:29:12 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Sat Aug 22 00:29:12 2009 +0000 |
tree | abe93b4025f7681b00a59e9ba8466285bfb30109 | |
parent | d99dda22f482a546ebf7692a7f2dd13162394da7 [diff] |
Ease contention on this lock by noticing that all writes to the VTs array will be of (dynamically) constant values, so races on it are immaterial. We just need to ensure that at least one write has completed before return the pointer into it. With this change, parllc exhibits essentially no overhead on 403.gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79708 91177308-0d34-0410-b5e6-96231b3b80d8