Skip to content

stats: Add a new class StatNamePool to abstract some StatName memory management.#6757

Merged
jmarantz merged 8 commits intoenvoyproxy:masterfrom
jmarantz:tag-managed-names
May 7, 2019
Merged

stats: Add a new class StatNamePool to abstract some StatName memory management.#6757
jmarantz merged 8 commits intoenvoyproxy:masterfrom
jmarantz:tag-managed-names

Conversation

@jmarantz
Copy link
Contributor

Description: While implementing the explicit management of StatName for HTTP codes in #6733 I found an opportunity for abstracting the memory management for a group of StatNames, using friendly RAII semantics at the group level. This also simplifies a bunch of existing unit tests.
Risk Level: low
Testing: //test/common/stats/...
Docs Changes: n/a
Release Notes: n/a

…mory management.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz requested a review from ambuc April 30, 2019 21:22
ambuc
ambuc previously approved these changes May 1, 2019
Copy link
Contributor

@ambuc ambuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some comments with documentation asks.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz changed the title stats: Add a new class StatNameManagedContainer to abstract some StatName memory management. stats: Add a new class StatNamePool to abstract some StatName memory management. May 1, 2019
jmarantz added 2 commits May 1, 2019 19:38
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Copy link
Contributor Author

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to rename it from StatNameManagedContainer to StatNamePool.

@jmarantz
Copy link
Contributor Author

jmarantz commented May 3, 2019

@envoyproxy/senior-maintainers any takers for a final review? This is a pretty simple refactor I added to make #6733 easier. This one should be pretty mechanical.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@mattklein123 mattklein123 self-assigned this May 6, 2019
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, generally looks good, 2 questions.

/wait-any

jmarantz added 2 commits May 6, 2019 18:27
…ge and explicit dtor.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Contributor Author

jmarantz commented May 6, 2019

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: asan (failed build)
🔨 rebuilding ci/circleci: release (failed build)

🐱

Caused by: a #6757 (comment) was created by @jmarantz.

see: more, trace.

@mattklein123
Copy link
Member

@jmarantz you will need to merge master again to fix CI I think.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz merged commit 32c7051 into envoyproxy:master May 7, 2019
@jmarantz jmarantz deleted the tag-managed-names branch May 7, 2019 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants