mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7086585: make Java field injection more flexible
Reviewed-by: jrose, twisti, kvn, coleenp
This commit is contained in:
parent
1ebca30d26
commit
e39ba1a5fe
39 changed files with 1073 additions and 991 deletions
|
@ -2044,7 +2044,6 @@ JvmtiEnv::SetFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
|||
// 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);
|
||||
update_klass_field_access_flag(fdesc_ptr);
|
||||
|
||||
JvmtiEventController::change_field_watch(JVMTI_EVENT_FIELD_ACCESS, true);
|
||||
|
||||
|
@ -2057,7 +2056,6 @@ JvmtiEnv::ClearFieldAccessWatch(fieldDescriptor* fdesc_ptr) {
|
|||
// 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);
|
||||
update_klass_field_access_flag(fdesc_ptr);
|
||||
|
||||
JvmtiEventController::change_field_watch(JVMTI_EVENT_FIELD_ACCESS, false);
|
||||
|
||||
|
@ -2070,7 +2068,6 @@ JvmtiEnv::SetFieldModificationWatch(fieldDescriptor* fdesc_ptr) {
|
|||
// 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);
|
||||
update_klass_field_access_flag(fdesc_ptr);
|
||||
|
||||
JvmtiEventController::change_field_watch(JVMTI_EVENT_FIELD_MODIFICATION, true);
|
||||
|
||||
|
@ -2083,7 +2080,6 @@ JvmtiEnv::ClearFieldModificationWatch(fieldDescriptor* fdesc_ptr) {
|
|||
// 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);
|
||||
update_klass_field_access_flag(fdesc_ptr);
|
||||
|
||||
JvmtiEventController::change_field_watch(JVMTI_EVENT_FIELD_MODIFICATION, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue