Skip to content

Fix page alloc info print format - #1058

Open
artemmiyy wants to merge 2 commits into
google:masterfrom
artemmiyy:fix-PageAllocInfoPrint-format
Open

artemmiyy wants to merge 2 commits into
google:masterfrom
artemmiyy:fix-PageAllocInfoPrint-format

Conversation

@artemmiyy

Copy link
Copy Markdown

Fixes a small text bug in PageAllocInfo::Print (tcmalloc/stats.cc)
where the format strings for process_background_actions,
soft_limit_exceeded, and hard_limit_exceeded released-page counts
printed "MiB" twice, e.g.:

tcmalloc: 42 pages (0.2 MiB) MiB released from ProcessBackgroundActions

instead of the intended:

tcmalloc: 42 pages (0.2 MiB) released from ProcessBackgroundActions

This is purely a cosmetic/diagnostic-output fix. The other two lines in the same function
("released in total" and "released from ReleaseMemoryToSystem")
were already correct and are unchanged.

artemmiyy and others added 2 commits September 21, 2026 23:40
Three of the release-reason lines in PageAllocInfo::Print had an
extra literal "MiB" after the "(%6.1f MiB)" field, e.g.:

  ... (12.3 MiB) MiB released from ProcessBackgroundActions

Remove the stray "MiB" so these lines match the format used by the
"released in total" and "released from ReleaseMemoryToSystem" lines
directly above them.
@google-cla

google-cla Bot commented Sep 22, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants