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

Use copyMutableByteArray# in moveByteArray #407

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

clyring
Copy link
Member

@clyring clyring commented Jan 4, 2024

The primop in question appears to have always been safe for use with overlapping ranges since its introduction. See also: https://gitlab.haskell.org/ghc/ghc/-/commit/b00b36196a88ad6b9054244caaec926f6f9db2cf

The cbits function "hsprimitive_memmove" is now unused, but is not removed because it was arguably publicly exposed due to the "Install-Includes: primitive-memops.h".

The primop in question appears to have always been safe for
use with overlapping ranges since its introduction. See also:
https://gitlab.haskell.org/ghc/ghc/-/commit/b00b36196a88ad6b9054244caaec926f6f9db2cf

The cbits function "hsprimitive_memmove" is now unused,
but is not removed because it was arguably publicly exposed
due to the "Install-Includes: primitive-memops.h".
@andrewthad
Copy link
Collaborator

Looks good. Merging.

@andrewthad andrewthad merged commit 06b1c86 into haskell:master Jan 5, 2024
12 checks passed
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.

2 participants