assert that input and output buffers passed to transcode! are independent#140
Merged
quinnj merged 6 commits intoJuliaIO:masterfrom Apr 21, 2023
Merged
assert that input and output buffers passed to transcode! are independent#140quinnj merged 6 commits intoJuliaIO:masterfrom
quinnj merged 6 commits intoJuliaIO:masterfrom
Conversation
Member
|
This is a good basic check, but I think we might want to actually check for aliasing. The help?> Base.dataids
Base.dataids(A::AbstractArray)
Return a tuple of UInts that represent the mutable data segments of an array.
Custom arrays that would like to opt-in to aliasing detection of their component parts can specialize this method to
return the concatenation of the dataids of their component parts. A typical definition for an array that wraps a
parent is Base.dataids(C::CustomArray) = dataids(C.parent).For normal arrays, it seems |
mkitti
reviewed
Apr 13, 2023
Co-authored-by: Mark Kittisopikul <mkitti@users.noreply.github.com>
quinnj
approved these changes
Apr 13, 2023
Member
quinnj
left a comment
There was a problem hiding this comment.
Thanks! Can we add a quick test too?
Member
|
@timholy just referred me to |
Member
|
I wonder if we are going to need an |
Contributor
Author
Agreed, added. |
4f2339d to
7e8b77b
Compare
7e8b77b to
2eec770
Compare
quinnj
approved these changes
Apr 21, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As suggested by @quinnj in #136 (comment)