src/share/vm/services/classLoadingService.cpp

Print this page
rev 5893 : 8034080: Remove the USDT1 dtrace code from Hotspot

*** 35,64 **** #ifdef DTRACE_ENABLED // Only bother with this argument setup if dtrace is available - #ifndef USDT2 - - HS_DTRACE_PROBE_DECL4(hotspot, class__loaded, char*, int, oop, bool); - HS_DTRACE_PROBE_DECL4(hotspot, class__unloaded, char*, int, oop, bool); - - #define DTRACE_CLASSLOAD_PROBE(type, clss, shared) \ - { \ - char* data = NULL; \ - int len = 0; \ - Symbol* name = (clss)->name(); \ - if (name != NULL) { \ - data = (char*)name->bytes(); \ - len = name->utf8_length(); \ - } \ - HS_DTRACE_PROBE4(hotspot, class__##type, \ - data, len, SOLARIS_ONLY((void *))(clss)->class_loader(), (shared)); \ - } - - #else /* USDT2 */ - #define HOTSPOT_CLASS_unloaded HOTSPOT_CLASS_UNLOADED #define HOTSPOT_CLASS_loaded HOTSPOT_CLASS_LOADED #define DTRACE_CLASSLOAD_PROBE(type, clss, shared) \ { \ char* data = NULL; \ --- 35,44 ----
*** 70,80 **** } \ HOTSPOT_CLASS_##type( /* type = unloaded, loaded */ \ data, len, (clss)->class_loader(), (shared)); \ } - #endif /* USDT2 */ #else // ndef DTRACE_ENABLED #define DTRACE_CLASSLOAD_PROBE(type, clss, shared) #endif --- 50,59 ----