Skip to content

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Oct 6, 2025

  • [stdlib] Unsafe[Mutable]RawPointer aligment for ~Escapable types

  • [stdlib] UnsafeMutableRawPointer: load[Unaligned] ~Escapable
    loadUnaligned only supports loading non-BitwiseCopyable values. The generic
    loadUnaligned should also be supported but it depends on UnsafePointer<T:
    ~Escapable>.

  • [stdlib] UnsafeMutableRawPointer: storeBytes of ~Escapable
    Only supports non-BitwiseCopyable values. The generic storeBytes should also be
    supported but it depends on UnsafePointer<T: ~Escapable>.

  • Test UnsafeRawPointer load of ~Escapable

  • Test UnsafeRawPointer store of ~Escapable

  • Update stability-stdlib-source-base.swift.expected for URP.load

This is necessary to allow non-Escapable values to reside in memory. Without this, it is impossible to build data types on type of Spans or other non-Escapable types.

@atrick atrick requested review from eeckstein, a team, hborla, slavapestov and xedin as code owners October 6, 2025 05:52
@atrick atrick marked this pull request as draft October 6, 2025 05:52
@atrick
Copy link
Contributor Author

atrick commented Oct 6, 2025

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Oct 6, 2025

@swift-ci smoke test macOS

1 similar comment
@atrick
Copy link
Contributor Author

atrick commented Oct 6, 2025

@swift-ci smoke test macOS

atrick added 7 commits October 6, 2025 17:26
loadUnaligned only supports loading non-BitwiseCopyable values. The generic
loadUnaligned should also be supported but it depends on UnsafePointer<T:
~Escapable>.
Only supports non-BitwiseCopyable values. The generic storeBytes should also be
supported but it depends on UnsafePointer<T: ~Escapable>.
@atrick atrick force-pushed the rawpointer-nonescapable branch from f1b374d to 0da6783 Compare October 7, 2025 00:27
@atrick
Copy link
Contributor Author

atrick commented Oct 7, 2025

@swift-ci smoke test

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