ddidderr
56c4ed7bab
feat(compress): move MT CCtx pool size addition to Rust
Keep ZSTDMT_sizeof_CCtxPool's NULL handling, wrapper sizeof, and Rust pool
size query in C while delegating only the final size_t aggregation to a
Rust ABI helper. The helper uses wrapping_add so its result matches C's
unsigned size_t arithmetic without changing the pool's existing saturating
internal accounting, layout, synchronization, or allocation paths.
Test Plan:
- `cargo test --manifest-path rust/Cargo.toml --no-default-features --features compression zstdmt_compress` -- passed (26 tests)
- Required clippy sequence before and after `cargo +nightly fmt` -- passed
- `make -B -C lib -j2 lib` -- passed
- `make -C tests test-rust-lib-smoke` -- passed
- `tests/fuzzer -s4560 -t56 -i57 -v` -- passed (57 tests)
- `make -C tests -j2 test-zstream` -- passed (84 named, 6,871 and 9,464 randomized tests)
- `git diff --check` and `git diff --cached --check` -- passed
- Existing warning at `tests/zstreamtest.c:1899` remains unchanged
2026-07-18 11:59:34 +02:00
..
2023-01-04 13:01:54 -08:00
2026-07-10 20:32:18 +02:00
2026-07-10 20:06:25 +02:00
2024-11-26 11:15:39 +01:00
2026-07-10 21:54:23 +02:00
2026-07-18 06:03:39 +02:00
2026-07-10 22:07:27 +02:00
2023-01-12 15:41:08 -08:00
2026-07-10 22:44:39 +02:00
2024-12-20 10:36:56 -08:00
2026-07-11 23:11:57 +02:00
2023-01-04 13:01:54 -08:00
2026-07-18 11:49:47 +02:00
2024-12-19 16:00:11 -08:00
2026-07-11 08:05:25 +02:00
2025-01-07 10:06:08 -08:00
2026-07-10 22:46:15 +02:00
2025-01-07 10:06:08 -08:00
2026-07-11 08:06:30 +02:00
2025-01-07 10:06:08 -08:00
2023-01-04 13:01:54 -08:00
2026-07-11 09:03:41 +02:00
2025-01-07 10:06:08 -08:00
2026-07-12 09:51:45 +02:00
2025-01-07 10:06:08 -08:00
2026-07-10 21:28:56 +02:00
2024-12-19 16:00:11 -08:00
2026-07-18 11:59:34 +02:00
2026-07-18 01:40:18 +02:00