equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
2424 |
2424 |
2425 HandleMark hm(thread); |
2425 HandleMark hm(thread); |
2426 Handle h(thread, object); |
2426 Handle h(thread, object); |
2427 |
2427 |
2428 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_CONTENDED_ENTER, |
2428 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_CONTENDED_ENTER, |
2429 ("[%s] montior contended enter event triggered", |
2429 ("[%s] monitor contended enter event triggered", |
2430 JvmtiTrace::safe_get_thread_name(thread))); |
2430 JvmtiTrace::safe_get_thread_name(thread))); |
2431 |
2431 |
2432 JvmtiEnvThreadStateIterator it(state); |
2432 JvmtiEnvThreadStateIterator it(state); |
2433 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2433 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2434 if (ets->is_enabled(JVMTI_EVENT_MONITOR_CONTENDED_ENTER)) { |
2434 if (ets->is_enabled(JVMTI_EVENT_MONITOR_CONTENDED_ENTER)) { |
2455 |
2455 |
2456 HandleMark hm(thread); |
2456 HandleMark hm(thread); |
2457 Handle h(thread, object); |
2457 Handle h(thread, object); |
2458 |
2458 |
2459 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_CONTENDED_ENTERED, |
2459 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_CONTENDED_ENTERED, |
2460 ("[%s] montior contended entered event triggered", |
2460 ("[%s] monitor contended entered event triggered", |
2461 JvmtiTrace::safe_get_thread_name(thread))); |
2461 JvmtiTrace::safe_get_thread_name(thread))); |
2462 |
2462 |
2463 JvmtiEnvThreadStateIterator it(state); |
2463 JvmtiEnvThreadStateIterator it(state); |
2464 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2464 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2465 if (ets->is_enabled(JVMTI_EVENT_MONITOR_CONTENDED_ENTERED)) { |
2465 if (ets->is_enabled(JVMTI_EVENT_MONITOR_CONTENDED_ENTERED)) { |
2486 |
2486 |
2487 HandleMark hm(thread); |
2487 HandleMark hm(thread); |
2488 Handle h(thread, object); |
2488 Handle h(thread, object); |
2489 |
2489 |
2490 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_WAIT, |
2490 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_WAIT, |
2491 ("[%s] montior wait event triggered", |
2491 ("[%s] monitor wait event triggered", |
2492 JvmtiTrace::safe_get_thread_name(thread))); |
2492 JvmtiTrace::safe_get_thread_name(thread))); |
2493 |
2493 |
2494 JvmtiEnvThreadStateIterator it(state); |
2494 JvmtiEnvThreadStateIterator it(state); |
2495 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2495 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2496 if (ets->is_enabled(JVMTI_EVENT_MONITOR_WAIT)) { |
2496 if (ets->is_enabled(JVMTI_EVENT_MONITOR_WAIT)) { |
2518 |
2518 |
2519 HandleMark hm(thread); |
2519 HandleMark hm(thread); |
2520 Handle h(thread, object); |
2520 Handle h(thread, object); |
2521 |
2521 |
2522 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_WAITED, |
2522 EVT_TRIG_TRACE(JVMTI_EVENT_MONITOR_WAITED, |
2523 ("[%s] montior waited event triggered", |
2523 ("[%s] monitor waited event triggered", |
2524 JvmtiTrace::safe_get_thread_name(thread))); |
2524 JvmtiTrace::safe_get_thread_name(thread))); |
2525 |
2525 |
2526 JvmtiEnvThreadStateIterator it(state); |
2526 JvmtiEnvThreadStateIterator it(state); |
2527 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2527 for (JvmtiEnvThreadState* ets = it.first(); ets != NULL; ets = it.next(ets)) { |
2528 if (ets->is_enabled(JVMTI_EVENT_MONITOR_WAITED)) { |
2528 if (ets->is_enabled(JVMTI_EVENT_MONITOR_WAITED)) { |