]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
scratch: remove quick validity check
authorHong, Yang A <yang.a.hong@intel.com>
Wed, 1 Mar 2023 14:42:27 +0000 (14:42 +0000)
committerKonstantinos Margaritis <markos@freevec.org>
Tue, 5 Sep 2023 10:58:17 +0000 (13:58 +0300)
commitc6523453d721b67c84b43504fd5eae5ee8ff8c6e
treef3940caf86afb43aecf0f65619189bc1a97bf3ba
parentab4f837607af1ae3c771fbcea31fe0a65c0dda33
scratch: remove quick validity check
Roll back fix for github issue #350

About Scratch Usage:
For compile time, scratch space is strongly recommended to be
allocated immediately after database generation.
For runtime, besides using scratch for corresponding database,
Hyperscan also allows user to use larger scratch space allocated
for another database.
When multiple concurrent threads need to use the same databases
and a new scratch space is required, cloning the largest one is
always safe. This is realized based on API hs_scratch_size() and
hs_clone_scratch().
Behaviors beyond above are discouraged and results are undefined.
src/runtime.c
src/scratch.c
src/scratch.h
src/state.h
src/stream_compress_impl.h