Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/instanceKlass.cpp @ 22966:6f31df24cec0
8047382: hotspot build failed with gcc version Red Hat 4.4.6-4.
Summary: Removed the Solaris specific conditionalization for casting to void * within calls to HS_DTRACE_PROBE* to enable successful compilation with gcc Red Hat 4.4.6-4.
Reviewed-by: hseigel, stefank
author | lfoltan |
---|---|
date | Thu, 16 Apr 2015 09:03:33 -0400 |
parents | 1a9c5e6e13b7 |
children | 4390345de45c |
comparison
equal
deleted
inserted
replaced
22965:713dfbf84b10 | 22966:6f31df24cec0 |
---|---|
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 |