]> git.ipfire.org Git - thirdparty/zstd.git/commit
zstdmt: fixed minor race condition
authorYann Collet <cyan@fb.com>
Tue, 23 Jan 2018 22:03:07 +0000 (14:03 -0800)
committerYann Collet <cyan@fb.com>
Tue, 23 Jan 2018 22:03:07 +0000 (14:03 -0800)
commitde5e38a7a60ef80f4e71838df87cea15c5e15047
tree4f3b8007265037155b972854f4317e369e220283
parentebd955e26a86cf5dc317126a5bbed2b5738840f5
zstdmt: fixed minor race condition

no real consequence, but pollute tsan tests :

job->dstBuff is being modified inside worker,
while main thread might read it accidentally
because it copies whole job.
But since it doesn't used dstBuff, there is no real consequence.

Other potential solution : only copy useful data, instead of whole job
lib/compress/zstdmt_compress.c