Skip to content

Conversation

arifthpe
Copy link
Collaborator

@arifthpe arifthpe commented Sep 26, 2025

Replace instances of c_pointer_return with c_addrOf in module code (besides CTypes itself), and allow passing domains to c_addrOf.

There are a few instances in module code where c_pointer_return is used directly rather than c_ptrTo to avoid its special behavior on arrays. However, we now have c_addrOf as an alternative that has no such special behavior that should be used instead. This PR updates all instances to use c_addrOf instead of workarounds.

Resolves https://github.com/Cray/chapel-private/issues/6587.

Originally PR'd the same changes in #26175.

[reviewer info placeholder]

Testing:

  • paratest
  • C backend paratest
  • gasnet paratest
  • GPU tests

Signed-off-by: Anna Rift <anna.rift@hpe.com>
Signed-off-by: Anna Rift <anna.rift@hpe.com>
Signed-off-by: Anna Rift <anna.rift@hpe.com>
@arifthpe arifthpe marked this pull request as draft September 26, 2025 17:22
@arifthpe arifthpe force-pushed the remove-cptr-workarounds branch from 13d8e8b to 70a986d Compare September 26, 2025 17:24
Reverted as it seems these workarounds have been removed from Sort on
main in the meantime.

This reverts commit f390c61.

Signed-off-by: Anna Rift <anna.rift@hpe.com>
@arifthpe arifthpe force-pushed the remove-cptr-workarounds branch 2 times, most recently from bb6d6fd to 1000b2e Compare September 26, 2025 17:39
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.

1 participant