Move TLS out of header file to avoid bazel incompatibility on Mac#13916
Closed
vjpai wants to merge 1 commit intogrpc:masterfrom
Closed
Move TLS out of header file to avoid bazel incompatibility on Mac#13916vjpai wants to merge 1 commit intogrpc:masterfrom
vjpai wants to merge 1 commit intogrpc:masterfrom
Conversation
|
|
vjpai
commented
Jan 4, 2018
| namespace grpc_core { | ||
| GPR_TLS_CLASS_DEF(ExecCtx::exec_ctx_); | ||
| namespace { | ||
| GPR_TLS_DECL(g_exec_ctx); |
Contributor
Author
There was a problem hiding this comment.
I know that at the current time, this is doubling-down since GPR_TLS_DECL already gives it static linkage but I thought that I should wrap it in an anonymous namespace to make the intention more clear.
|
yashykt
approved these changes
Jan 4, 2018
Member
yashykt
left a comment
There was a problem hiding this comment.
LGTM.
We might want to revert this once the bazel issue is fixed though.
Contributor
Author
|
@yashykt : I agree that we might want to revert this. Given that this has hurt some microbenchmark numbers, I am tempted to say that we shouldn't merge it either. I can craft another one that only affects Mac. |
Contributor
Author
|
Closing this since #13929 merged instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13856