mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
Merge
This commit is contained in:
commit
1258452546
4501 changed files with 42318 additions and 43171 deletions
|
@ -50,27 +50,6 @@
|
|||
|
||||
// Only bother with this argument setup if dtrace is available
|
||||
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE_DECL8(hotspot, compiled__method__load,
|
||||
const char*, int, const char*, int, const char*, int, void*, size_t);
|
||||
|
||||
HS_DTRACE_PROBE_DECL6(hotspot, compiled__method__unload,
|
||||
char*, int, char*, int, char*, int);
|
||||
|
||||
#define DTRACE_METHOD_UNLOAD_PROBE(method) \
|
||||
{ \
|
||||
Method* m = (method); \
|
||||
if (m != NULL) { \
|
||||
Symbol* klass_name = m->klass_name(); \
|
||||
Symbol* name = m->name(); \
|
||||
Symbol* signature = m->signature(); \
|
||||
HS_DTRACE_PROBE6(hotspot, compiled__method__unload, \
|
||||
klass_name->bytes(), klass_name->utf8_length(), \
|
||||
name->bytes(), name->utf8_length(), \
|
||||
signature->bytes(), signature->utf8_length()); \
|
||||
} \
|
||||
}
|
||||
#else /* USDT2 */
|
||||
#define DTRACE_METHOD_UNLOAD_PROBE(method) \
|
||||
{ \
|
||||
Method* m = (method); \
|
||||
|
@ -84,7 +63,6 @@ HS_DTRACE_PROBE_DECL6(hotspot, compiled__method__unload,
|
|||
(char *) signature->bytes(), signature->utf8_length()); \
|
||||
} \
|
||||
}
|
||||
#endif /* USDT2 */
|
||||
|
||||
#else // ndef DTRACE_ENABLED
|
||||
|
||||
|
@ -1520,16 +1498,6 @@ bool nmethod::can_unload(BoolObjectClosure* is_alive, oop* root, bool unloading_
|
|||
void nmethod::post_compiled_method_load_event() {
|
||||
|
||||
Method* moop = method();
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE8(hotspot, compiled__method__load,
|
||||
moop->klass_name()->bytes(),
|
||||
moop->klass_name()->utf8_length(),
|
||||
moop->name()->bytes(),
|
||||
moop->name()->utf8_length(),
|
||||
moop->signature()->bytes(),
|
||||
moop->signature()->utf8_length(),
|
||||
insts_begin(), insts_size());
|
||||
#else /* USDT2 */
|
||||
HOTSPOT_COMPILED_METHOD_LOAD(
|
||||
(char *) moop->klass_name()->bytes(),
|
||||
moop->klass_name()->utf8_length(),
|
||||
|
@ -1538,7 +1506,6 @@ void nmethod::post_compiled_method_load_event() {
|
|||
(char *) moop->signature()->bytes(),
|
||||
moop->signature()->utf8_length(),
|
||||
insts_begin(), insts_size());
|
||||
#endif /* USDT2 */
|
||||
|
||||
if (JvmtiExport::should_post_compiled_method_load() ||
|
||||
JvmtiExport::should_post_compiled_method_unload()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue