Skip to content

fix(alloc): set a limit on preallocations (backport release-3.6.x) - #20920

Merged
salvacorts merged 1 commit into
release-3.6.xfrom
backport-20891-to-release-3.6.x
Feb 23, 2026
Merged

fix(alloc): set a limit on preallocations (backport release-3.6.x)#20920
salvacorts merged 1 commit into
release-3.6.xfrom
backport-20891-to-release-3.6.x

Conversation

@loki-gh-app

@loki-gh-app loki-gh-app Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Backport 9525e53 from #20891


What this PR does / why we need it:

Limits the preallocations of various maps and slices.

Thanks @Proximyst for finding and fixing.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
Limits the preallocations of various maps and slices.

Thanks @Proximyst for finding and fixing.

(cherry picked from commit 9525e53)
@loki-gh-app
loki-gh-app Bot requested a review from a team as a code owner February 23, 2026 08:50
@loki-gh-app loki-gh-app Bot added backport size/M type/bug Somehing is not working as expected labels Feb 23, 2026
@loki-gh-app
loki-gh-app Bot requested a review from ivkalita February 23, 2026 08:50
@salvacorts
salvacorts merged commit 7e1daf3 into release-3.6.x Feb 23, 2026
82 checks passed
@salvacorts
salvacorts deleted the backport-20891-to-release-3.6.x branch February 23, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport size/M type/bug Somehing is not working as expected

2 participants