Landing: 60623805437f

Project / Subsystem

gcc / statistics

Date

2026-08-01

Author

Lewis Hyatt

Commit

60623805437fc74e8e0e90b92d86f181f5ab5ba2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
statistics
patch_id
—
commit_hash
60623805437fc74e8e0e90b92d86f181f5ab5ba2
source_type
github
headline
Fix detailed memory stats for PCH
tldr
Resolves failures in PCH tests when detailed memory statistics are enabled.
author
Lewis Hyatt
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • bugfix
  • • statistics
  • • PCH
discussion_id_link
—
bugzilla_pr
—
date
2026-08-01T00:00:00.000Z

This commit fixes an issue where GCC’s detailed memory statistics gathering (--enable-gather-detailed-mem-stats) caused tests involving Precompiled Headers (PCH) to fail. The problem occurred because the statistics infrastructure did not recognize GGC’d objects loaded after a PCH restore, leading to errors in mem_alloc_description::release_object_overhead. The fix ensures these unknown objects are ignored, preventing test failures.