Repository navigation
memory/jemalloc: Fix reserved memory accounting - #48472
Merged
Merged
Conversation
Signed-off-by: Ryan Northey <[email protected]>
nezdolik
reviewed
Oct 21, 2026
| // After destruction, there should be no leaks. We allow 4096 bytes for allocator caches. | ||
| // We use EXPECT_LE directly here to bypass the strict EXPECT_GT constraint of EXPECT_MEMORY_LE. | ||
| EXPECT_LE(memory_test.consumedBytes(), 4096); | ||
| EXPECT_LE(static_cast<int64_t>(memory_test.consumedBytes()), 4096); |
Member
There was a problem hiding this comment.
why is this cast needed here? is it related to the fix in the pr?
Member
Author
There was a problem hiding this comment.
yeah - jemalloc testing fails without it - this was the botsplanation that i didnt pick when adding this - but happy to add it
// Cast to signed: under jemalloc the allocator may release unrelated cached memory during the
// churn above, so the net delta can legitimately be negative.
Member
There was a problem hiding this comment.
got it, could you add explanatory comment (why the cast is needed)
Member
Author
There was a problem hiding this comment.
argh - just realized this will fail format - will fix ...
Signed-off-by: Ryan Northey <[email protected]>
nezdolik
previously approved these changes
Oct 21, 2026
phlax
enabled auto-merge (squash)
October 21, 2026 12:29
Signed-off-by: Ryan Northey <[email protected]>
jwendell
approved these changes
Oct 21, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 6, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 6, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 9, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
jwendell
pushed a commit
that referenced
this pull request
Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 12, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
This was referenced Nov 12, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 12, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit d5005ca) Signed-off-by: Ryan Northey <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.