I can't figure out how to use ICorProfilerInfo::SetFunctionReJIT().
Every time I call it on a functionId other than the one which has been
passed to the current callback function (ie JITCompilationFinished()), the
CLR deadlocks on the next invocation of the method whose function id I've
passed.
Here's what I wana do:
I use JITCompilationStarted() to replace the body of some method (which
works correctly).
Later on, I wan't to be able to make another change to the same method,
which requires the function
to be re-jited.
So I need to call SetFunctionReJIT() on the method when I want to change it
again (preferably from a different thread), but that doesn't work.
Any help would be greatly appreciated, since my university-diploma might
depend on it....
Patrick
Jason He - 23 Sep 2003 01:23 GMT
Hi Patrick,
I don't have an answer for this.
But below article might be helpful for you.
http://msdn.microsoft.com/msdnmag/issues/03/09/NETProfilingAPI/default.aspx
Thanks
Jason
--------------------
| From: "Patrick Grawehr" <pgrawehr@student.ethz.ch>
| Subject: SetFunctionReJIT causing deadlock in the CLR
[quoted text clipped - 31 lines]
|
| Patrick