Sean Bartell
80af41e08a
[contrib/pzstd] Prevent hangs when there are errors
...
When two threads are using a WorkQueue and the reader thread exits due
to an error, it must call WorkQueue::finish() to wake up the writer
thread. Otherwise, if the queue is full and the writer thread is waiting
for a free slot, it could hang forever.
This can happen in pratice when decompressing a large, corrupted file
that does not contain pzstd skippable frames.
2025-01-13 17:24:41 -05:00
W. Felix Handte
5d693cc38c
Coalesce Almost All Copyright Notices to Standard Phrasing
...
```
for f in $(find . \( -path ./.git -o -path ./tests/fuzz/corpora -o -path ./tests/regression/data-cache -o -path ./tests/regression/cache \) -prune -o -type f); do sed -i '/Copyright .* \(Yann Collet\)\|\(Meta Platforms\)/ s/Copyright .*/Copyright (c) Meta Platforms, Inc. and affiliates./' $f; done
git checkout HEAD -- build/VS2010/libzstd-dll/libzstd-dll.rc build/VS2010/zstd/zstd.rc tests/test-license.py contrib/linux-kernel/test/include/linux/xxhash.h examples/streaming_compression_thread_pool.c lib/legacy/zstd_v0*.c lib/legacy/zstd_v0*.h
nano ./programs/windres/zstd.rc
nano ./build/VS2010/zstd/zstd.rc
nano ./build/VS2010/libzstd-dll/libzstd-dll.rc
```
2022-12-20 12:52:34 -05:00
W. Felix Handte
7f12f24cf4
Rewrite Copyright Date Ranges from -present
to -2022
...
Apparently it's better. Somehow.
```
for f in $(find . \( -path ./.git -o -path ./tests/fuzz/corpora -o -path ./tests/regression/data-cache -o -path ./tests/regression/cache \) -prune -o -type f); do echo $f; sed -i 's/\-present/-2022/' $f; done
g co HEAD -- build/meson/
```
2022-12-20 12:44:56 -05:00
W. Felix Handte
8927f985ff
Update Copyright Headers 'Facebook' -> 'Meta Platforms'
...
```
for f in $(find . \( -path ./.git -o -path ./tests/fuzz/corpora \) -prune -o -type f);
do
sed -i 's/Facebook, Inc\./Meta Platforms, Inc. and affiliates./' $f;
done
```
2022-12-20 12:37:57 -05:00
Nick Terrell
e9797b5dc5
[pzstd] Fixes for Windows build
...
* Add `Portability.h` to fix min/max issues.
* Fix conversion warnings
* Assert that windowLog <= 23, which is currently always the case.
This could be loosened, but we aren't looking to add new functionality.
Fixes on top of PR #3375 by @eli-schwartz, which added Windows CI for contrib & programs.
2022-12-19 14:09:43 -08:00
Danielle Rozenblit
4dffc35f2e
Convert references to https from http
2022-12-14 06:58:35 -08:00
Dominique Pelle
b772f53952
Typo and grammar fixes
2022-03-12 08:58:04 +01:00
Nick Terrell
a7a469e095
[contrib][pzstd] Fix build issue with gcc-5
...
gcc-5 didn't like the l-value overload for defaulted operator=. There is
no reason it needs to be l-value overloaded, so just remove it.
I'm not sure why the build broke for @mckaygerhard in Issue #2811 , since
this code hasn't changed since it was added. But, there is no harm in
fixing it.
Fixes issue #2811 .
2021-11-30 18:29:02 -08:00
Josh Soref
a880ca239b
Spelling ( #1582 )
...
* spelling: accidentally
* spelling: across
* spelling: additionally
* spelling: addresses
* spelling: appropriate
* spelling: assumed
* spelling: available
* spelling: builder
* spelling: capacity
* spelling: compiler
* spelling: compressibility
* spelling: compressor
* spelling: compression
* spelling: contract
* spelling: convenience
* spelling: decompress
* spelling: description
* spelling: deflate
* spelling: deterministically
* spelling: dictionary
* spelling: display
* spelling: eliminate
* spelling: preemptively
* spelling: exclude
* spelling: failure
* spelling: independence
* spelling: independent
* spelling: intentionally
* spelling: matching
* spelling: maximum
* spelling: meaning
* spelling: mishandled
* spelling: memory
* spelling: occasionally
* spelling: occurrence
* spelling: official
* spelling: offsets
* spelling: original
* spelling: output
* spelling: overflow
* spelling: overridden
* spelling: parameter
* spelling: performance
* spelling: probability
* spelling: receives
* spelling: redundant
* spelling: recompression
* spelling: resources
* spelling: sanity
* spelling: segment
* spelling: series
* spelling: specified
* spelling: specify
* spelling: subtracted
* spelling: successful
* spelling: return
* spelling: translation
* spelling: update
* spelling: unrelated
* spelling: useless
* spelling: variables
* spelling: variety
* spelling: verbatim
* spelling: verification
* spelling: visited
* spelling: warming
* spelling: workers
* spelling: with
2019-04-12 11:18:11 -07:00
Yann Collet
e21384fffb
fixed more file headers after license change ( #825 )
2017-08-31 12:11:57 -07:00
Yann Collet
e9dc204f42
fixed a bunch of headers after license change ( #825 )
2017-08-31 11:24:54 -07:00
Nick Terrell
0bd5d25d02
[pzstd] Add logging statements to tests
2017-04-27 09:55:19 -07:00
Nick Terrell
9c018cc140
Add BUCK files for Nuclide support
2017-01-27 10:43:12 -08:00
Nick Terrell
8c6c686d0a
[pzstd] Fix lantent bug in WorkQueue::push()
2016-10-14 15:26:56 -07:00
Nick Terrell
e9e151ce31
[pzstd] Reuse ZSTD_{C,D}Stream
2016-10-14 15:26:55 -07:00
Nick Terrell
8b4e84249b
[pzstd] Fix Makefile
2016-10-14 15:26:50 -07:00
Nick Terrell
87629978d3
[pzstd] Fix latent bug in WorkQueue
2016-10-06 15:51:58 -07:00
Nick Terrell
5ca471990b
[pzstd] Spawn less threads in tests
...
MinGW thread performance degrades significantly when there are
a lot of threads, so limit the number of threads spawned to ~10.
2016-09-22 18:59:22 -07:00
Nick Terrell
5eaf5da723
[pzstd] Turn on warnings + quiet them
2016-09-22 16:12:29 -07:00
Nick Terrell
254c5b1692
[pzstd] Make CLI compatible with zstd
2016-09-21 14:29:47 -07:00
Nick Terrell
4db9fbdec7
[pzstd] Compile with minGW 64
2016-09-06 14:00:20 -07:00
Nick Terrell
378d12bb0c
[pzstd] Changes to compile on VS2015
2016-09-06 12:43:07 -07:00
Nick Terrell
9622fe499d
Fix memory usage issues.
2016-09-02 20:11:22 -07:00
Nick Terrell
64c1c065cc
Add optional max size to work queue
2016-09-02 13:53:23 -07:00
Nick Terrell
724e3d534f
Put linker -l commands at the end
2016-09-01 20:45:55 -07:00
Nick Terrell
7df55e17e9
Fix up Makefiles, and fix include issues compiling with gcc
2016-09-01 18:26:19 -07:00
Nick Terrell
040cfd8e7d
Get ready to add tests to travis-ci
2016-09-01 16:21:19 -07:00
Nick Terrell
c932520960
Add PZstandard to contrib/
2016-09-01 15:25:31 -07:00