Skip to content

Are method locals "fixed"? #101937

Answered by EgorBo
colejohnson66 asked this question in Q&A
May 6, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

While it is safe in this case, it is generally recommended to avoid relying on such details and express intentions directly via fixed. Unsafe.AsPointer is one of the most dangerous API and, sadly, too often introduces so called gc holes.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@colejohnson66
Comment options

@huoyaoyuan
Comment options

@tannergooding
Comment options

@tannergooding
Comment options

Answer selected by colejohnson66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants