ILGPU
ILGPU copied to clipboard
Remove some Gc holes
Going via Unsafe.AsPointer risks creating Gc holes where the GC has moved the memory but the pointer has not been updates
Use safer alternatives via ref
Related: https://github.com/m4rs-mt/ILGPU/issues/1209
@m4rs-mt Some build failures are related to .Net 6 runtime not having support for ref field.
.Net 6 is out of support currently. Do you think ILGpu should support it moving forward?