allisterb / jemalloc.NET

A native memory manager for .NET
MIT License
332 stars 16 forks source link

Buffer types should utilize Memory<T> and implement IPinnable, IMemoryOwner<T> et.al #9

Open allisterb opened 6 years ago

allisterb commented 6 years ago

Since Memory<T> and related types and the System.Memory package is now generally available on all .NET platforms, all jemalloc.NET API types like FixedBuffer<T> should utilize these types.

antonfirsov commented 6 years ago

Also be aware that the API shape of System.Memory went through significant changes. Eg. IRetainable does no longer exist, implementing reference counting is optional.