# HG changeset patch # User sgehwolf # Date 1502101157 -7200 # Node ID 1f26ac73b909a27e93ecfb154ee40f2eabf32c02 # Parent 07298ebd9367292d655f809bf0caa0954178810d 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 diff -r 07298ebd9367 -r 1f26ac73b909 hotspot/src/share/vm/oops/instanceKlass.cpp --- 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 diff -r 07298ebd9367 -r 1f26ac73b909 hotspot/src/share/vm/services/classLoadingService.cpp --- 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