| Index: src/IceGlobalContext.cpp
|
| diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
|
| index 9e1b72c9f47486f1b34e47066b69570d4c1e2f93..3b468254baa07dc44a3a65d5bc9ea4496371fcae 100644
|
| --- a/src/IceGlobalContext.cpp
|
| +++ b/src/IceGlobalContext.cpp
|
| @@ -136,7 +136,7 @@ GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit,
|
| // lock AllThreadContexts at this point since no other threads have
|
| // access yet to this GlobalContext object.
|
| AllThreadContexts.push_back(new ThreadContext());
|
| - TLS = AllThreadContexts.back();
|
| + ICE_TLS_SET_FIELD(TLS, AllThreadContexts.back());
|
| // Pre-register built-in stack names.
|
| if (ALLOW_DUMP) {
|
| // TODO(stichnot): There needs to be a strong relationship between
|
| @@ -495,7 +495,8 @@ void GlobalContext::dumpStats(const IceString &Name, bool Final) {
|
| if (Final) {
|
| getStatsCumulative()->dump(Name, getStrDump());
|
| } else {
|
| - TLS->StatsFunction.dump(Name, getStrDump());
|
| + ICE_TLS_GET_FIELD(TLS, ThreadContext *)->StatsFunction.dump(Name,
|
| + getStrDump());
|
| getStatsCumulative()->dump("_TOTAL_", getStrDump());
|
| }
|
| }
|
| @@ -518,6 +519,6 @@ TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func)
|
| }
|
| }
|
|
|
| -ICE_ATTRIBUTE_TLS GlobalContext::ThreadContext *GlobalContext::TLS;
|
| +ICE_TLS_DEFINE_FIELD(GlobalContext, TLS, GlobalContext::ThreadContext *);
|
|
|
| } // end of namespace Ice
|
|
|