To catch any bugs with the JITC, need some kind of debugging functionality.
It is necessary to show statistics: the number of recompiled code segments, the number of executed code segments, this will allow you to track the dynamics of the recompiler's behavior.
You also need to dump the segments and invalidate them.
We must not forget that you need to carry out special processing to invalidate the current executable segment so that the code does not fly into the pipe.
To catch any bugs with the JITC, need some kind of debugging functionality.
It is necessary to show statistics: the number of recompiled code segments, the number of executed code segments, this will allow you to track the dynamics of the recompiler's behavior. You also need to dump the segments and invalidate them.
We must not forget that you need to carry out special processing to invalidate the current executable segment so that the code does not fly into the pipe.