Bytecode Instrumentation
| 2004 JavaOne
SM
Conference | Session 3042 Copyright Hewlett Packard Co., 2004.
25
static CrwCpoolIndex
add_new_method_cpool_entry(CrwClassImage *ci,
CrwCpoolIndex class_index, const char *name, const char
*descr)
{
CrwCpoolIndex name_index, descr_index,
name_type_index;
name_index = add_new_cpool_entry(ci,
JVM_CONSTANT_Utf8, len, 0, name, len);
descr_index = add_new_cpool_entry(ci,
JVM_CONSTANT_Utf8, len, 0, descr, len);
name_type_index = add_new_cpool_entry(ci,
JVM_CONSTANT_NameAndType, name_index, descr_index,
NULL, 0);
return add_new_cpool_entry(ci,
JVM_CONSTANT_Methodref, class_index,
name_type_index, NULL, 0);
Add the runtime tracking
method to the Constant Pool