diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-04-13 16:06:18 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-04-13 16:06:18 -0700 |
commit | aba977ee03f85f059aca1bdb0b0e1202f25d04cd (patch) | |
tree | 5f8bc97014598aa3742fdb2ec0b351de711b1f66 /src/jit/block.cpp | |
parent | 517207b9d3f2a53c726a8682c1331cf7bdb0360b (diff) | |
download | coreclr-aba977ee03f85f059aca1bdb0b0e1202f25d04cd.tar.gz coreclr-aba977ee03f85f059aca1bdb0b0e1202f25d04cd.tar.bz2 coreclr-aba977ee03f85f059aca1bdb0b0e1202f25d04cd.zip |
Collect the JIT's TLS variables in a single type.
Instead of storing pointers to the thread-local compiler instance
and the current logging environment in separate TLS slots, wrap
these values in a struct and store a pointer to the struct in a
single TLS slot. This simplifies and standardizes the JIT's interface
to its TLS storage, especially when it is being statically linked
into another program or library that cannot use standard TLS.
Note that for release builds, the logging environment is not used
and a pointer to the current compiler instance is stored directly
into the JIT's TLS slot as an implementation detail of the TLS
wrapper type.
Diffstat (limited to 'src/jit/block.cpp')
-rw-r--r-- | src/jit/block.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/block.cpp b/src/jit/block.cpp index 0103988318..305efc086e 100644 --- a/src/jit/block.cpp +++ b/src/jit/block.cpp @@ -45,7 +45,7 @@ unsigned SsaStressHashHelper() } if (hash == 1) { - return GetTlsCompiler()->info.compMethodHash(); + return JitTls::GetCompiler()->info.compMethodHash(); } return ((hash >> 16) == 0) ? ((hash << 16) | hash) : hash; } |