145 if (name != NULL) { \ |
145 if (name != NULL) { \ |
146 data = (char*)name->bytes(); \ |
146 data = (char*)name->bytes(); \ |
147 len = name->utf8_length(); \ |
147 len = name->utf8_length(); \ |
148 } \ |
148 } \ |
149 HOTSPOT_CLASS_INITIALIZATION_##type( \ |
149 HOTSPOT_CLASS_INITIALIZATION_##type( \ |
150 data, len, (clss)->class_loader(), thread_type); \ |
150 data, len, (void *)(clss)->class_loader(), thread_type); \ |
151 } |
151 } |
152 |
152 |
153 #define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait) \ |
153 #define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait) \ |
154 { \ |
154 { \ |
155 char* data = NULL; \ |
155 char* data = NULL; \ |
158 if (name != NULL) { \ |
158 if (name != NULL) { \ |
159 data = (char*)name->bytes(); \ |
159 data = (char*)name->bytes(); \ |
160 len = name->utf8_length(); \ |
160 len = name->utf8_length(); \ |
161 } \ |
161 } \ |
162 HOTSPOT_CLASS_INITIALIZATION_##type( \ |
162 HOTSPOT_CLASS_INITIALIZATION_##type( \ |
163 data, len, (clss)->class_loader(), thread_type, wait); \ |
163 data, len, (void *)(clss)->class_loader(), thread_type, wait); \ |
164 } |
164 } |
165 #endif /* USDT2 */ |
165 #endif /* USDT2 */ |
166 |
166 |
167 #else // ndef DTRACE_ENABLED |
167 #else // ndef DTRACE_ENABLED |
168 |
168 |