src/share/vm/oops/instanceKlass.cpp
Print this page
rev 5893 : 8034080: Remove the USDT1 dtrace code from Hotspot
*** 75,129 ****
#include "c1/c1_Compiler.hpp"
#endif
#ifdef DTRACE_ENABLED
- #ifndef USDT2
-
- HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required,
- char*, intptr_t, oop, intptr_t);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__recursive,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__concurrent,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__erroneous,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__super__failed,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__clinit,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__error,
- char*, intptr_t, oop, intptr_t, int);
- HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__end,
- char*, intptr_t, oop, intptr_t, int);
-
- #define DTRACE_CLASSINIT_PROBE(type, clss, thread_type) \
- { \
- 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__initialization__##type, \
- data, len, SOLARIS_ONLY((void *))(clss)->class_loader(), thread_type); \
- }
-
- #define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait) \
- { \
- char* data = NULL; \
- int len = 0; \
- Symbol* name = (clss)->name(); \
- if (name != NULL) { \
- data = (char*)name->bytes(); \
- len = name->utf8_length(); \
- } \
- HS_DTRACE_PROBE5(hotspot, class__initialization__##type, \
- data, len, SOLARIS_ONLY((void *))(clss)->class_loader(), thread_type, wait); \
- }
- #else /* USDT2 */
#define HOTSPOT_CLASS_INITIALIZATION_required HOTSPOT_CLASS_INITIALIZATION_REQUIRED
#define HOTSPOT_CLASS_INITIALIZATION_recursive HOTSPOT_CLASS_INITIALIZATION_RECURSIVE
#define HOTSPOT_CLASS_INITIALIZATION_concurrent HOTSPOT_CLASS_INITIALIZATION_CONCURRENT
#define HOTSPOT_CLASS_INITIALIZATION_erroneous HOTSPOT_CLASS_INITIALIZATION_ERRONEOUS
--- 75,84 ----
*** 154,164 ****
len = name->utf8_length(); \
} \
HOTSPOT_CLASS_INITIALIZATION_##type( \
data, len, (clss)->class_loader(), thread_type, wait); \
}
- #endif /* USDT2 */
#else // ndef DTRACE_ENABLED
#define DTRACE_CLASSINIT_PROBE(type, clss, thread_type)
#define DTRACE_CLASSINIT_PROBE_WAIT(type, clss, thread_type, wait)
--- 109,118 ----