#include <threads.h>
Public Methods | |
| MethodInfo (const MethodInfo &) | |
| ~MethodInfo () | |
| MethodInfo (char *method_name, char *method_signature, jint, jint, jmethodID method_id, jobjectID class_id) | |
| jobjectID | getClassID () const |
| const char* | getShortInfo () const |
Private Attributes | |
| char* | m_short_string |
| jobjectID | m_class_id |
| jmethodID | m_method_id |
| bool | m_used |
| char* | m_method_name |
| char* | m_method_signature |
|
|
Definition at line 144 of file threads.cpp. 00145 {
00146 m_class_id = mi.m_class_id;
00147 m_method_id = mi.m_method_id;
00148 m_method_name = mi.m_method_name;
00149 m_method_signature = mi.m_method_signature;
00150 m_short_string = null;
00151 }
|
|
|
Definition at line 153 of file threads.cpp. 00154 {
00155 cout << "~MI " << m_method_id << endl;
00156 delete[] m_short_string;
00157 }
|
|
|
Definition at line 175 of file threads.cpp. 00182 {
00183 m_class_id = class_id;
00184 m_method_id = method_id;
00185 m_short_string = null;
00186
00187 if (!HotSpot)
00188 {
00189 m_method_name = method_name;
00190 m_method_signature = method_signature;
00191 }
00192 else
00193 {
00194 m_method_name = new char[512];
00195 m_method_signature = new char[512];
00196 strncpy(m_method_name, method_name, 512);
00197 strncpy(m_method_signature, method_signature , 512);
00198 }
00199
00200 //printf("%s\n",m_short_string);
00201 }
|
|
|
Definition at line 170 of file threads.cpp. Referenced by ThreadDump().
00171 {
00172 return m_class_id;
00173 }
|
|
|
Definition at line 161 of file threads.cpp. Referenced by ThreadDump().
00162 {
00163 if (m_short_string != null)
00164 return m_short_string;
00165
00166 m_short_string = new char[512];
00167 _snprintf(m_short_string, 512, "%08X %08X %s %s\0", m_class_id, m_method_id, m_method_name, m_method_signature);
00168 return m_short_string;
00169 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001