-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Census base log #5098
Add Census base log #5098
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
#5096 has been merged, and I've merged this branch to head. Hopefully all tests should now pass. |
gpr_atm block; | ||
/* Ensure cachline alignment: we assume sizeof(gpr_atm) == 4 or 8 */ | ||
#if defined(GPR_ARCH_64) | ||
#define CL_CORE_LOCAL_BLOCK_PAD_SIZE (GPR_CACHELINE_SIZE - 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not sizeof(gpr_atm)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because (very annoyingly) sizeof gets evaluated by the compiler, not the preprocessor, which means the #if on line 169 would fail to evaluate.
memset(record, data, size); | ||
} | ||
|
||
/* Reads fixed size records. Returns the number of records read in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for causing more work :) Consistency is for the win . Please update these comments as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, comments updated.
Merge attempt failed |
ObjC travis build is broken with this problem: Undefined symbols for architecture i386: |
Not sure why you're commenting on ObjC breakage on this PR? |
Because it was broken by this PR, and detected by Travis, which was ignored along with the other failed automated tests :) |
Aargh. I was sure those tests passed sometime. OK, now I have to figure out how/why this change, triggers this problem in the ObjC build. Looking at this error message: Undefined symbols for architecture i386: implies that for some reason src/core/support/log.c isn't being linked? And the lightbulb goes off - same filename, different directories. But why only ObjC? Tomorrow. |
I've confirmed that this issue is due to the duplicate file names, even though the two log.o files are in separate libraries. A quick hack would be to use a different name for one of them. A better solution would be to do "the right thing" - trying to see if there is a libtool option to do that. |
Tools that assume nobody would ever put code in a subdirectory are the bane of Mac development. |
OK, I have a fix. Turns out the problem was really that we were linking the libgpr objects into libgrpc.a. Removing that seems to have everything working. Let me do some more tests, and will send you a PR. |
Hi, the master is still failing. Have you submitted the PR already? Thanks On Fri, Feb 19, 2016 at 5:07 PM, Alistair Veitch notifications@github.com
|
#5352 is out for review. |
This currently depends on #5096 for passing the test on windows. Don't merge until that is.
Fixes #4666