# HG changeset patch # User sgehwolf # Date 1502101157 -7200 # Mon Aug 07 12:19:17 2017 +0200 # Node ID 3d1bfb8b5e202eb22a537e89482b9b751cc9941e # Parent f6f83ccda93ae7cf2a9bf5ca8b30f2a8da156c95 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 --git a/src/share/vm/oops/instanceKlass.cpp b/src/share/vm/oops/instanceKlass.cpp --- a/src/share/vm/oops/instanceKlass.cpp +++ b/src/share/vm/oops/instanceKlass.cpp @@ -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 --git a/src/share/vm/services/classLoadingService.cpp b/src/share/vm/services/classLoadingService.cpp --- a/src/share/vm/services/classLoadingService.cpp +++ b/src/share/vm/services/classLoadingService.cpp @@ -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