NFA: Move NFAContext to stack (from scratch)

This commit is contained in:
Justin Viiret
2016-02-11 16:40:16 +11:00
committed by Matthew Barr
parent 7b54856642
commit 3e002f8181
4 changed files with 60 additions and 82 deletions

View File

@@ -91,7 +91,6 @@ protected:
// Mock up a scratch structure that contains the pieces that we need
// for NFA execution.
scratch = aligned_zmalloc_unique<hs_scratch>(sizeof(struct hs_scratch));
scratch->nfaContext = nfa_context.get();
}
virtual void initQueue() {
@@ -339,7 +338,6 @@ protected:
// Mock up a scratch structure that contains the pieces that we need
// for reverse NFA execution.
scratch = aligned_zmalloc_unique<hs_scratch>(sizeof(struct hs_scratch));
scratch->nfaContextSom = nfa_context.get();
}
// NFA type (enum NFAEngineType)
@@ -409,7 +407,6 @@ protected:
// Mock up a scratch structure that contains the pieces that we need
// for NFA execution.
scratch = aligned_zmalloc_unique<hs_scratch>(sizeof(struct hs_scratch));
scratch->nfaContext = nfa_context.get();
}
virtual void initQueue() {