Skip to content

JLArrays: Disallow conversions to CPU pointers.#549

Merged
maleadt merged 1 commit into
mainfrom
tb/jlarray_ptr
May 15, 2026
Merged

JLArrays: Disallow conversions to CPU pointers.#549
maleadt merged 1 commit into
mainfrom
tb/jlarray_ptr

Conversation

@maleadt
Copy link
Copy Markdown
Member

@maleadt maleadt commented Jul 5, 2024

This helps flush out uses of unsupported functionality.

Noticed in #458, where a call to qr(::JLArray) dispatched to LAPACK.geqrt! without erroring.

@maleadt maleadt marked this pull request as draft July 5, 2024 11:32
Helps flush out uses of unsupported functionality, e.g. a call to
`qr(::JLArray)` that would dispatch to `LAPACK.geqrt!` without erroring.

`Base.pointer` remains available for callers that explicitly want a
pointer; the guard lives on `Base.unsafe_convert`, which is what ccall
routes through.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@maleadt maleadt marked this pull request as ready for review May 15, 2026 14:09
@maleadt maleadt merged commit 00f6243 into main May 15, 2026
17 of 18 checks passed
@maleadt maleadt deleted the tb/jlarray_ptr branch May 15, 2026 15:40
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