Table of Contents

Method ReleaseContext

Namespace
Ubiquity.NET.Llvm.OrcJITv2
Assembly
Ubiquity.NET.Llvm.dll

ReleaseContext()

Release the context for the memory. No further callbacks will occur for this allocator

void ReleaseContext()

Remarks

This is similar to a call to Dispose() except that it releases only the native context in response to a callback, not the handle for allocator itself. That MUST live longer than the JIT as any memory it allocated MAY still be in use as code or data in the JIT. (This interface only deals with WHOLE JIT memory allocation. It is at least plausible to have an allocator per JitDyLib but that would end up needing to leverage a global one to ensure that section ordering and size limits of the underlying OS are met. If such a things is ever implemented, it would use a different interface for clarity.)