Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mem alloc array check #572

Merged
merged 3 commits into from
Nov 3, 2020
Merged

Mem alloc array check #572

merged 3 commits into from
Nov 3, 2020

Conversation

robdockins
Copy link
Contributor

Generalize and improve the asMemAllocationArrayStore check.

a predicate indicating when the returned array is actually
an appropriate backing array for the given pointer.  This removes
the syntactic check that the predicate reduces concretely to True,
and also handles the case where a backing array can only be found
on some branches of a merge.

However, the call sites in this module (`writeMemWithAllocationCheck`,
and `readMem`) still rely on a syntactic check against the predicate;
otherwise, they fall back on other behavior.  The overall
behavior of those operations should be unchanged.
the tail of a memory log once, preventing possible exponential
behavior.
@robdockins robdockins merged commit dcb28ee into master Nov 3, 2020
@travitch travitch deleted the mem-alloc-array-check branch December 16, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants