Diff of /agents/jvmpi/jvmpi_oprofile.cpp [3b11e2] .. [6ee980] Maximize Restore

  Switch to unified view

a/agents/jvmpi/jvmpi_oprofile.cpp b/agents/jvmpi/jvmpi_oprofile.cpp
...
...
104
        cls_info.method_names.find(method);
104
        cls_info.method_names.find(method);
105
    if (method_it == cls_info.method_names.end()) {
105
    if (method_it == cls_info.method_names.end()) {
106
        throw runtime_error("Error: Cannot find method name for "
106
        throw runtime_error("Error: Cannot find method name for "
107
                    "compiled method\n");
107
                    "compiled method\n");
108
    }
108
    }
109
    char const * method_name = ((string)method_it->second).c_str();
109
    char const * method_name = method_it->second.c_str();
110
    method_it = cls_info.method_signatures.find(method);
110
    method_it = cls_info.method_signatures.find(method);
111
    if (method_it == cls_info.method_signatures.end()) {
111
    if (method_it == cls_info.method_signatures.end()) {
112
        throw runtime_error("Error: Cannot find method signature "
112
        throw runtime_error("Error: Cannot find method signature "
113
                    "for compiled method\n");
113
                    "for compiled method\n");
114
    }
114
    }
115
    char const * method_signature = ((string)method_it->second).c_str();
115
    char const * method_signature = method_it->second.c_str();
116
116
117
    string const class_signature = "L" + cls_info.name + ";";
117
    string const class_signature = "L" + cls_info.name + ";";
118
    pthread_mutex_unlock(&class_map_mutex);
118
    pthread_mutex_unlock(&class_map_mutex);
119
119
120
    if (debug) {
120
    if (debug) {