I am studying the CHAD compiler. The method encodedInstr.GetDataPointer(0) return a pointer and so it¡¯s responsible for the compiler use unsafe code. Is there a way to do this safe

Re: Phoenix Manage CHAD compiler

Andy Ayers - MSFT

No, not at the current time.

This is something I am actually working on fixing, though it will take a while for this fix to turn up in an RDK. It turns out that with our current implementation, DataInstructions can point at data on the native heap.

So the only possible access from C# is via unsafe.