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/ssarenamestate.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/ssarenamestate.cpp')
-rw-r--r-- | src/jit/ssarenamestate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/ssarenamestate.cpp b/src/jit/ssarenamestate.cpp index 8c58df40dd..03bc8974a5 100644 --- a/src/jit/ssarenamestate.cpp +++ b/src/jit/ssarenamestate.cpp @@ -155,7 +155,7 @@ void SsaRenameState::Push(BasicBlock* bb, unsigned lclNum, unsigned count) } #ifdef DEBUG - if (GetTlsCompiler()->verboseSsa) + if (JitTls::GetCompiler()->verboseSsa) { printf("\tContents of the stack: ["); for (Stack::iterator iter2 = stack->begin(); iter2 != stack->end(); iter2++) @@ -194,7 +194,7 @@ void SsaRenameState::PopBlockStacks(BasicBlock* block) assert(stacks[i]->back().m_bb != block); } } - if (GetTlsCompiler()->verboseSsa) + if (JitTls::GetCompiler()->verboseSsa) { DumpStacks(); } |