]> 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)
commite4ffd75282ae0f9737df7b76f7021569cd13b8a5
treef3940caf86afb43aecf0f65619189bc1a97bf3ba
parent5131c376988077e5dd5a330628648874bc17d73c
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