This report summarizes scanner evidence for google/tcmalloc, a C++ project with 5,374 GitHub stars. SynthScan examined 44,391 lines of code across 160 source files, recording 366 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 8.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 366 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 366 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 366 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Copyright 2026 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/page_allocator_test_util.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/tcmalloc.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/tcmalloc.h | 21 | COMMENT | |
| LOW | tcmalloc/transfer_cache.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/transfer_cache.h | 21 | #include <algorithm> | COMMENT |
| LOW | tcmalloc/huge_address_map.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/huge_address_map.h | 21 | #include "tcmalloc/huge_pages.h" | COMMENT |
| LOW | tcmalloc/new_extension.h | 1 | // Copyright 2020 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/experiment.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/experiment.h | 21 | #include <optional> | COMMENT |
| LOW | tcmalloc/profile_marshaler.h | 1 | // Copyright 2021 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/malloc_hook.h | 1 | // Copyright 2025 The TCMalloc Authors. | COMMENT |
| LOW | tcmalloc/malloc_hook.h | 81 | // | COMMENT |
| LOW | tcmalloc/global_stats.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/static_vars.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/static_vars.h | 21 | #include <stdint.h> | COMMENT |
| LOW | tcmalloc/static_vars.h | 41 | #include "tcmalloc/internal/sampled_allocation.h" | COMMENT |
| LOW | tcmalloc/huge_cache.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/huge_cache.h | 21 | COMMENT | |
| LOW | tcmalloc/huge_cache.h | 121 | .freq = absl::base_internal::CycleClock::Frequency}) {} | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 21 | #include <algorithm> | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 41 | #include "tcmalloc/common.h" | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 81 | abandoned_(false), | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 161 | COMMENT | |
| LOW | tcmalloc/huge_page_tracker.h | 261 | // This is used to determine when the tracker may be revisited for | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 281 | }; | COMMENT |
| LOW | tcmalloc/huge_page_tracker.h | 401 | bool was_released_; | COMMENT |
| LOW | tcmalloc/pages.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/pages.h | 21 | #include <limits> | COMMENT |
| LOW | tcmalloc/CMakeLists.txt | 1 | # Copyright 2026 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 21 | #include <algorithm> | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 41 | #include "tcmalloc/common.h" | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 61 | #include "tcmalloc/internal/system_allocator.h" | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 741 | // Marks r as usable by new allocations into *pt; returns pt if that hugepage | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 821 | // *is* hugepage-backed!) | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 881 | // Treatments applied include: | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 981 | // Partially released ones that we are trying to release. | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1001 | // n_used_released_ contains the number of pages in huge pages that are not | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1081 | // | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1161 | template <class TrackerType> | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1181 | // | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1201 | // want to use them until the regular Filler hugepages are used up. That | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1221 | // quickly find non-empty lists. The lists are ordered to satisfy the | COMMENT |
| LOW | tcmalloc/huge_page_filler.h | 1681 | } | COMMENT |
| LOW | tcmalloc/pagemap.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/pagemap.h | 21 | // (i.e., page offset fits in lower 13 bits), BITS == 35 (48-13). | COMMENT |
| LOW | tcmalloc/page_allocator.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/page_allocator.h | 21 | #include <cstdint> | COMMENT |
| LOW | tcmalloc/page_allocator.h | 41 | #include "tcmalloc/page_allocator_interface.h" | COMMENT |
| LOW | tcmalloc/sizemap.h | 1 | // Copyright 2022 The TCMalloc Authors | COMMENT |
| LOW | tcmalloc/sizemap.h | 21 | #include <limits> | COMMENT |
| LOW | tcmalloc/sizemap.h | 61 | //------------------------------------------------------------------- | COMMENT |
| LOW | tcmalloc/sizemap.h | 81 | static constexpr int kSmallSizeAlignment = 8; | COMMENT |
| LOW | tcmalloc/sizemap.h | 101 | // and both Hot New and Hot Malloc point to P0. | COMMENT |
| LOW | tcmalloc/sizemap.h | 121 | // aligned, this member is also aligned to the width of a cache line. | COMMENT |
| LOW | tcmalloc/sizemap.h | 301 | ASSUME(size <= kMaxSize); | COMMENT |
| LOW | tcmalloc/central_freelist.h | 1 | // Copyright 2019 The TCMalloc Authors | COMMENT |
| 305 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tcmalloc/internal/prefetch.h | 49 | // Example usage: | COMMENT |