Skip to content
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

Wrap all stl containers with a marl::StlAllocator #147

Merged
merged 2 commits into from
Jun 5, 2020

Conversation

ben-clayton
Copy link
Contributor

marl::StlAllocator uses a marl::Allocator for performing the allocations, avoiding untracked heap allocations.

Issue: #131

@ben-clayton ben-clayton force-pushed the wrap-stl-alloc branch 4 times, most recently from 3f410ed to cda1436 Compare June 5, 2020 19:55
@@ -22,14 +22,11 @@ class AllocatorTest : public testing::Test {
};

TEST_F(AllocatorTest, AlignedAllocate) {

Choose a reason for hiding this comment

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

This looks like a perfect use for a parametrized test!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack. I'll see if I can clean this up in another pass.

@ben-clayton ben-clayton force-pushed the wrap-stl-alloc branch 6 times, most recently from 541b46d to 56fc2b0 Compare June 5, 2020 21:33
`StlAllocator` uses a `marl::Allocator` for performing the allocations,
avoiding untracked heap allocations.

Issue: google#131
Enabled `MARL_FATAL` and `MARL_ASSERT` even in debug builds.
@ben-clayton ben-clayton marked this pull request as ready for review June 5, 2020 21:49
@ben-clayton ben-clayton merged commit 32af8bb into google:master Jun 5, 2020
@ben-clayton ben-clayton deleted the wrap-stl-alloc branch June 5, 2020 22:15
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.

2 participants