8338934: vmTestbase/nsk/jvmti/*Field*Watch/TestDescription.java tests timeout intermittently
Reviewed-by: sspitsyn, amenkov
This commit is contained in:
parent
392bdd5734
commit
92aafb4342
@ -2534,6 +2534,7 @@ JvmtiEnv::ClearBreakpoint(Method* method, jlocation location) {
|
||||
|
||||
jvmtiError
|
||||
JvmtiEnv::SetFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
||||
JvmtiVTMSTransitionDisabler disabler;
|
||||
// make sure we haven't set this watch before
|
||||
if (fdesc_ptr->is_field_access_watched()) return JVMTI_ERROR_DUPLICATE;
|
||||
fdesc_ptr->set_is_field_access_watched(true);
|
||||
@ -2546,6 +2547,7 @@ JvmtiEnv::SetFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
||||
|
||||
jvmtiError
|
||||
JvmtiEnv::ClearFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
||||
JvmtiVTMSTransitionDisabler disabler;
|
||||
// make sure we have a watch to clear
|
||||
if (!fdesc_ptr->is_field_access_watched()) return JVMTI_ERROR_NOT_FOUND;
|
||||
fdesc_ptr->set_is_field_access_watched(false);
|
||||
@ -2558,6 +2560,7 @@ JvmtiEnv::ClearFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
||||
|
||||
jvmtiError
|
||||
JvmtiEnv::SetFieldModificationWatch(fieldDescriptor* fdesc_ptr) {
|
||||
JvmtiVTMSTransitionDisabler disabler;
|
||||
// make sure we haven't set this watch before
|
||||
if (fdesc_ptr->is_field_modification_watched()) return JVMTI_ERROR_DUPLICATE;
|
||||
fdesc_ptr->set_is_field_modification_watched(true);
|
||||
@ -2570,6 +2573,7 @@ JvmtiEnv::SetFieldModificationWatch(fieldDescriptor* fdesc_ptr) {
|
||||
|
||||
jvmtiError
|
||||
JvmtiEnv::ClearFieldModificationWatch(fieldDescriptor* fdesc_ptr) {
|
||||
JvmtiVTMSTransitionDisabler disabler;
|
||||
// make sure we have a watch to clear
|
||||
if (!fdesc_ptr->is_field_modification_watched()) return JVMTI_ERROR_NOT_FOUND;
|
||||
fdesc_ptr->set_is_field_modification_watched(false);
|
||||
|
@ -982,8 +982,6 @@ JvmtiEventControllerPrivate::change_field_watch(jvmtiEvent event_type, bool adde
|
||||
added? "add" : "remove",
|
||||
*count_addr));
|
||||
|
||||
JvmtiVTMSTransitionDisabler disabler;
|
||||
|
||||
if (added) {
|
||||
(*count_addr)++;
|
||||
if (*count_addr == 1) {
|
||||
|
@ -267,7 +267,7 @@ void mutex_init() {
|
||||
MUTEX_DEFN(CompileStatistics_lock , PaddedMutex , safepoint);
|
||||
MUTEX_DEFN(DirectivesStack_lock , PaddedMutex , nosafepoint);
|
||||
|
||||
MUTEX_DEFN(JvmtiThreadState_lock , PaddedMutex , safepoint); // Used by JvmtiThreadState/JvmtiEventController
|
||||
MUTEX_DEFN(JvmtiVTMSTransition_lock , PaddedMonitor, safepoint); // used for Virtual Thread Mount State transition management
|
||||
MUTEX_DEFN(EscapeBarrier_lock , PaddedMonitor, nosafepoint); // Used to synchronize object reallocation/relocking triggered by JVMTI
|
||||
MUTEX_DEFN(Management_lock , PaddedMutex , safepoint); // used for JVM management
|
||||
|
||||
@ -354,7 +354,7 @@ void mutex_init() {
|
||||
// JVMCIRuntime_lock must be acquired before JVMCI_lock to avoid deadlock
|
||||
MUTEX_DEFL(JVMCI_lock , PaddedMonitor, JVMCIRuntime_lock);
|
||||
#endif
|
||||
MUTEX_DEFL(JvmtiVTMSTransition_lock , PaddedMonitor, JvmtiThreadState_lock); // used for Virtual Thread Mount State transition management
|
||||
MUTEX_DEFL(JvmtiThreadState_lock , PaddedMutex , JvmtiVTMSTransition_lock); // Used by JvmtiThreadState/JvmtiEventController
|
||||
|
||||
// Allocate RecursiveMutex
|
||||
MultiArray_lock = new RecursiveMutex();
|
||||
|
Loading…
Reference in New Issue
Block a user