8223227: Rename acquire_tag_map() to tag_map_acquire() in jvmtiEnvBase

Wed, 01 May 2019 20:25:31 -0700

author
manc
date
Wed, 01 May 2019 20:25:31 -0700
changeset 9734
25738d7267c3
parent 9733
c61a86859323
child 9735
bd6ec847115e

8223227: Rename acquire_tag_map() to tag_map_acquire() in jvmtiEnvBase
Reviewed-by: dholmes, jcbeyler

src/share/vm/prims/jvmtiEnvBase.hpp file | annotate | diff | comparison | revisions
src/share/vm/prims/jvmtiTagMap.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/prims/jvmtiEnvBase.hpp	Tue Apr 30 18:44:41 2019 -0700
     1.2 +++ b/src/share/vm/prims/jvmtiEnvBase.hpp	Wed May 01 20:25:31 2019 -0700
     1.3 @@ -252,7 +252,7 @@
     1.4      return _tag_map;
     1.5    }
     1.6  
     1.7 -  JvmtiTagMap* acquire_tag_map() {
     1.8 +  JvmtiTagMap* tag_map_acquire() {
     1.9      return (JvmtiTagMap*)OrderAccess::load_ptr_acquire(&_tag_map);
    1.10    }
    1.11  
     2.1 --- a/src/share/vm/prims/jvmtiTagMap.cpp	Tue Apr 30 18:44:41 2019 -0700
     2.2 +++ b/src/share/vm/prims/jvmtiTagMap.cpp	Wed May 01 20:25:31 2019 -0700
     2.3 @@ -499,7 +499,7 @@
     2.4  // returns the tag map for the given environments. If the tag map
     2.5  // doesn't exist then it is created.
     2.6  JvmtiTagMap* JvmtiTagMap::tag_map_for(JvmtiEnv* env) {
     2.7 -  JvmtiTagMap* tag_map = ((JvmtiEnvBase*)env)->acquire_tag_map();
     2.8 +  JvmtiTagMap* tag_map = ((JvmtiEnvBase*)env)->tag_map_acquire();
     2.9    if (tag_map == NULL) {
    2.10      MutexLocker mu(JvmtiThreadState_lock);
    2.11      tag_map = ((JvmtiEnvBase*)env)->tag_map();
    2.12 @@ -3282,7 +3282,7 @@
    2.13    if (JvmtiEnv::environments_might_exist()) {
    2.14      JvmtiEnvIterator it;
    2.15      for (JvmtiEnvBase* env = it.first(); env != NULL; env = it.next(env)) {
    2.16 -      JvmtiTagMap* tag_map = env->acquire_tag_map();
    2.17 +      JvmtiTagMap* tag_map = env->tag_map_acquire();
    2.18        if (tag_map != NULL && !tag_map->is_empty()) {
    2.19          tag_map->do_weak_oops(is_alive, f);
    2.20        }

mercurial