mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-02 06:34:41 +03:00
Rose: pack global state bits into one u8
Eliminate the RoseRuntimeState structure in favour of a single status byte that is stored in scratch and copied to/from stream state.
This commit is contained in:
committed by
Matthew Barr
parent
28f379d738
commit
9e9bb6a960
@@ -211,9 +211,7 @@ hwlmcb_rv_t roseHaltIfExhausted(const struct RoseEngine *t,
|
||||
struct hs_scratch *scratch) {
|
||||
struct core_info *ci = &scratch->core_info;
|
||||
if (isAllExhausted(t, ci->exhaustionVector)) {
|
||||
if (!ci->broken) {
|
||||
ci->broken = BROKEN_EXHAUSTED;
|
||||
}
|
||||
ci->status |= STATUS_EXHAUSTED;
|
||||
scratch->tctxt.groups = 0;
|
||||
DEBUG_PRINTF("all exhausted, termination requested\n");
|
||||
return HWLM_TERMINATE_MATCHING;
|
||||
|
||||
Reference in New Issue
Block a user