8185900: hotspot build failed with gcc version Red Hat 4.4.7-3
Summary: Cast to void* within DTRACE_CLASS* macros.
Reviewed-by: coleenp, shade
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp Mon Aug 07 12:34:21 2017 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp Mon Aug 07 12:19:17 2017 +0200
@@ -101,7 +101,7 @@
len = clss_name->utf8_length(); \
} \
HOTSPOT_CLASS_INITIALIZATION_##type( \
- data, len, class_loader(), thread_type); \
+ data, len, (void*)class_loader(), thread_type); \
}
#define DTRACE_CLASSINIT_PROBE_WAIT(type, thread_type, wait) \
@@ -114,7 +114,7 @@
len = clss_name->utf8_length(); \
} \
HOTSPOT_CLASS_INITIALIZATION_##type( \
- data, len, class_loader(), thread_type, wait); \
+ data, len, (void*)class_loader(), thread_type, wait); \
}
#else // ndef DTRACE_ENABLED
--- a/hotspot/src/share/vm/services/classLoadingService.cpp Mon Aug 07 12:34:21 2017 -0700
+++ b/hotspot/src/share/vm/services/classLoadingService.cpp Mon Aug 07 12:19:17 2017 +0200
@@ -53,7 +53,7 @@
len = name->utf8_length(); \
} \
HOTSPOT_CLASS_##type( /* type = unloaded, loaded */ \
- data, len, (clss)->class_loader(), (shared)); \
+ data, len, (void*)(clss)->class_loader(), (shared)); \
}
#else // ndef DTRACE_ENABLED