-
Notifications
You must be signed in to change notification settings - Fork 646
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
| return (byte*)Unsafe.AsPointer(ref payload); |
this member is called here
| Buffer.MemoryCopy(key.ToPointerWithMetadata(), curr, key.Length, key.Length); |
which this API is called from the public API TryWriteKeyValueSpanByte here
| if (!WriteSerializedSpanByte(ref key, ref value)) |
which takes ref SpanByte.
It is a GC hole since it's never pinned or otherwise fixed.
This is also a GC hole, since the memory is not fixed (you can also just use Unsafe.SizeOf here):
Line 28 in 1e5c7ad
| return (int)((long)Unsafe.AsPointer(ref arr[1]) - (long)Unsafe.AsPointer(ref arr[0])); |
This is also seems to be a GC hole, since the memory is never fixed on this public API:
| byte* ptr = (byte*)Unsafe.AsPointer(ref spanByte); |
(note this list is not exhaustive)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request