Skip to content

Add zmalloc_aligned() and fix SPMC queue buffer alignment (#3504)

8cde9c4
Select commit
Loading
Failed to load commit list.
Open

Backport Unstable to 9.1 for RC2 #3519

Add zmalloc_aligned() and fix SPMC queue buffer alignment (#3504)
8cde9c4
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Apr 23, 2026 in 0s

76.43% (+1.85%) compared to 6b85ca4

View this Pull Request on Codecov

76.43% (+1.85%) compared to 6b85ca4

Details

Codecov Report

❌ Patch coverage is 80.15075% with 316 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.43%. Comparing base (6b85ca4) to head (8cde9c4).

Files with missing lines Patch % Lines
src/module.c 39.93% 185 Missing ⚠️
src/io_threads.c 72.66% 79 Missing ⚠️
src/networking.c 88.28% 15 Missing ⚠️
src/valkey-cli.c 83.87% 10 Missing ⚠️
src/server.c 90.24% 8 Missing ⚠️
src/t_string.c 84.31% 8 Missing ⚠️
src/call_reply.c 97.16% 4 Missing ⚠️
src/rdb.c 66.66% 2 Missing ⚠️
src/zmalloc.c 80.00% 2 Missing ⚠️
src/debug.c 0.00% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##              9.1    #3519      +/-   ##
==========================================
+ Coverage   74.57%   76.43%   +1.85%     
==========================================
  Files         130      161      +31     
  Lines       72731    80682    +7951     
==========================================
+ Hits        54239    61669    +7430     
- Misses      18492    19013     +521     
Files with missing lines Coverage Δ
src/aof.c 80.30% <100.00%> (-0.06%) ⬇️
src/cluster.c 92.39% <100.00%> (+0.40%) ⬆️
src/cluster_legacy.c 88.26% <100.00%> (+0.12%) ⬆️
src/cluster_migrateslots.c 91.87% <ø> (-0.39%) ⬇️
src/commandlog.c 95.79% <100.00%> (-0.79%) ⬇️
src/commands.def 100.00% <ø> (ø)
src/config.c 78.09% <100.00%> (+0.38%) ⬆️
src/crc16.c 100.00% <100.00%> (ø)
src/eval.c 91.42% <ø> (ø)
src/fuzzer_command_generator.c 76.75% <ø> (-0.21%) ⬇️
... and 24 more

... and 53 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.