]> git.ipfire.org Git - thirdparty/zstd.git/commit
[cwksp] Align all allocated "tables" and "aligneds" to 64 bytes (#2546)
authorsen <senhuang96@fb.com>
Fri, 2 Apr 2021 00:07:19 +0000 (20:07 -0400)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 00:07:19 +0000 (20:07 -0400)
commit980f3bbf8354edec0ad32b4430800f330185de6a
tree03c74f0ffc313ab04d87cf2f582a00e8121be27c
parent255925c231bbceddd45416eeea080792d02654fe
[cwksp] Align all allocated "tables" and "aligneds" to 64 bytes (#2546)

* Perform 64-byte alignment of wksp tables and aligneds internally

* Clean up cwskp_finalize() function to only do two allocs

* Refactor aligned/buffer reservation code, remove ASAN req for alignment reservations

* Change from allocating 128 bytes always to allocating only buffer space as needed for tables/aligned

* Back out aligned/table reservation order restriction

* Add stricter bounds for new/resized wksps, fix comment in zstd_cwksp.h
lib/compress/zstd_compress.c
lib/compress/zstd_cwksp.h