ICorDebugFunction3::GetActiveReJitRequestILCode Method

[Supported in the .NET Framework 4.5.2 and later versions]

Gets an interface pointer to an ICorDebugILCode that contains the IL from an active ReJIT request.


HRESULT GetActiveReJitRequestILCode(  
   ICorDebugILCode **ppReJitedILCode  


A pointer to the IL from an active ReJIT request.


If the method represented by this ICorDebugFunction3 object has an active ReJIT request, ppReJitedILCode returns a pointer to its IL. If there is no active request, which is a common case, then ppReJitedILCode is null.

A ReJIT request becomes active just after execution returns from the ICorProfilerCallback4::GetReJITParameters method call. It may not yet be JIT-compiled, and threads may still be executing in the original version of the code. A ReJIT request becomes inactive during the profiler's call to the ICorProfilerInfo4::RequestRevert method. Even after the IL is reverted, a thread can still be executing in the JIT-recompiled (ReJIT) code.


Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5.2

See Also

ICorDebugFunction3 Interface
Debugging Interfaces
ReJIT: A How-To Guide