diff options
author | Scott Mosier <smosier@microsoft.com> | 2016-04-29 21:04:50 +0300 |
---|---|---|
committer | Scott Mosier <smosier@microsoft.com> | 2016-04-29 21:04:50 +0300 |
commit | ede47337e4736cda31f963e1dacaf38f1d09e2f5 (patch) | |
tree | f11e071c1264c85b8a4f5d8382eb3eabaf8f95f8 /src/Native/Runtime/threadstore.cpp | |
parent | e71eafae093ab4434e195dada959ac840d968bfc (diff) |
Implement type casting cache
This checkin is an adaptation of a cache used in the type loader. It is applied to our type casting APIs and brings a significant performance improvement to any type-cast-heavy workload.
The cache has an initial tuning that looks reasonable, but should still be considered provisional as we gather more data on its behavior across various workloads.
[tfs-changeset: 1600411]
Diffstat (limited to 'src/Native/Runtime/threadstore.cpp')
-rw-r--r-- | src/Native/Runtime/threadstore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Native/Runtime/threadstore.cpp b/src/Native/Runtime/threadstore.cpp index a3bef6638..e84cfd73f 100644 --- a/src/Native/Runtime/threadstore.cpp +++ b/src/Native/Runtime/threadstore.cpp @@ -393,9 +393,9 @@ GPTR_IMPL_INIT(UInt32, p_tls_index, &_tls_index); #else // DACCESS_COMPILE #if defined(BIT64) -#define OFFSETOF__TLS__tls_CurrentThread 0x20 -#elif defined(_ARM_) #define OFFSETOF__TLS__tls_CurrentThread 0x10 +#elif defined(_ARM_) +#define OFFSETOF__TLS__tls_CurrentThread 0x08 #else #define OFFSETOF__TLS__tls_CurrentThread 0x08 #endif |