-
Notifications
You must be signed in to change notification settings - Fork 851
Fix g++ 10 compile errors. #6731
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
Conversation
| int cleanup(int event, Event *e); | ||
|
|
||
| PinnedDocTable() : Continuation(new_ProxyMutex()) { memset(bucket, 0, sizeof(Queue<PinnedDocEntry>) * PINNED_DOC_TABLE_SIZE); } | ||
| PinnedDocTable() : Continuation(new_ProxyMutex()) { ink_zero(bucket); } |
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.
Do we need this initialization? Queue's constructor should be called as long as this constructor is called.
| num_consumers = 0; | ||
| memset(consumers, 0, sizeof(consumers)); | ||
| memset(producers, 0, sizeof(producers)); | ||
| ink_zero(consumers); |
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.
I don't think this is a right way to solve the problem. I'd use placement new for each item.
|
@maskit I understand your points, but I think those should be separate PRs. For this one, I tried to minimize changes. Unfortunately I had to do some non-trivial reworking in |
ca2f217 to
fd32f69
Compare
|
[approve ci autest] |
|
Cherry-picked to v9.0.x branch. |
For issue #6716.
Two commits.
traffic_viato usestring_view, which fixes an error which would otherwise be more painful to deal with.