5. op_unload_native_code

Write information to the JIT dump file about invalidated compiled code.
#include <opagent.h>
int op_unload_native_code(hdl,  


Signal the invalidation of native code from a virtual machine.


hdl : Handle returned from an earlier call to op_open_agent()

vma : Virtual memory address of the compiled code being unloaded. An op_write_native_code() with the same vma should have occurred before this call.

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, fwrite