This repository was archived by the owner on Jul 19, 2018. It is now read-only.
Commit b0b10bd
committed
layers:Save mem accesses in read/write maps
This commit stores memory accesses into separate read and write maps.
This provides a perf boost for checking potential memory access faults
by eliminating uneccessary checks when previous access maps that would
be checked are empty so we don't iterate over maps that have no
potential for any conflicts.
A couple of other changes to cleanup memory access checks:
1. Merge "Add*MemoryAccess()" and "ValidateMemoryAccesses()" functions
into a single "CreateAndValidate*MemoryAccess()" function. This creates
the local access struct and validates it, but it won't be recorded into
the CB until/unless validation passes.
2. Split Mem access violation reporting into a separate function that
can be shared by a couple of different cases that flag errors.1 parent 3a0f5d3 commit b0b10bd
4 files changed
Lines changed: 335 additions & 218 deletions
0 commit comments