108 if (name != NULL) { \ |
108 if (name != NULL) { \ |
109 data = (char*)name->bytes(); \ |
109 data = (char*)name->bytes(); \ |
110 len = name->utf8_length(); \ |
110 len = name->utf8_length(); \ |
111 } \ |
111 } \ |
112 HS_DTRACE_PROBE4(hotspot, class__initialization__##type, \ |
112 HS_DTRACE_PROBE4(hotspot, class__initialization__##type, \ |
113 data, len, SOLARIS_ONLY((void *))(clss)->class_loader(), thread_type); \ |
113 data, len, (void *)(clss)->class_loader(), thread_type); \ |
114 } |
114 } |
115 |
115 |
116 #define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait) \ |
116 #define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait) \ |
117 { \ |
117 { \ |
118 char* data = NULL; \ |
118 char* data = NULL; \ |
121 if (name != NULL) { \ |
121 if (name != NULL) { \ |
122 data = (char*)name->bytes(); \ |
122 data = (char*)name->bytes(); \ |
123 len = name->utf8_length(); \ |
123 len = name->utf8_length(); \ |
124 } \ |
124 } \ |
125 HS_DTRACE_PROBE5(hotspot, class__initialization__##type, \ |
125 HS_DTRACE_PROBE5(hotspot, class__initialization__##type, \ |
126 data, len, SOLARIS_ONLY((void *))(clss)->class_loader(), thread_type, wait); \ |
126 data, len, (void *)(clss)->class_loader(), thread_type, wait); \ |
127 } |
127 } |
128 #else /* USDT2 */ |
128 #else /* USDT2 */ |
129 |
129 |
130 #define HOTSPOT_CLASS_INITIALIZATION_required HOTSPOT_CLASS_INITIALIZATION_REQUIRED |
130 #define HOTSPOT_CLASS_INITIALIZATION_required HOTSPOT_CLASS_INITIALIZATION_REQUIRED |
131 #define HOTSPOT_CLASS_INITIALIZATION_recursive HOTSPOT_CLASS_INITIALIZATION_RECURSIVE |
131 #define HOTSPOT_CLASS_INITIALIZATION_recursive HOTSPOT_CLASS_INITIALIZATION_RECURSIVE |