ILGPU icon indicating copy to clipboard operation
ILGPU copied to clipboard

Remove some Gc holes

Open benaadams opened this issue 1 year ago • 2 comments

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

benaadams avatar Oct 30 '24 10:10 benaadams

Related: https://github.com/m4rs-mt/ILGPU/issues/1209

En3Tho avatar Oct 31 '24 11:10 En3Tho

@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?

En3Tho avatar Jan 17 '25 08:01 En3Tho