提交 4b263627 编写于 作者: M manc

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

Reviewed-by: dholmes, jcbeyler
上级 4750a563
...@@ -252,7 +252,7 @@ class JvmtiEnvBase : public CHeapObj<mtInternal> { ...@@ -252,7 +252,7 @@ class JvmtiEnvBase : public CHeapObj<mtInternal> {
return _tag_map; return _tag_map;
} }
JvmtiTagMap* acquire_tag_map() { JvmtiTagMap* tag_map_acquire() {
return (JvmtiTagMap*)OrderAccess::load_ptr_acquire(&_tag_map); return (JvmtiTagMap*)OrderAccess::load_ptr_acquire(&_tag_map);
} }
......
...@@ -499,7 +499,7 @@ void JvmtiTagMap::destroy_entry(JvmtiTagHashmapEntry* entry) { ...@@ -499,7 +499,7 @@ void JvmtiTagMap::destroy_entry(JvmtiTagHashmapEntry* entry) {
// returns the tag map for the given environments. If the tag map // returns the tag map for the given environments. If the tag map
// doesn't exist then it is created. // doesn't exist then it is created.
JvmtiTagMap* JvmtiTagMap::tag_map_for(JvmtiEnv* env) { JvmtiTagMap* JvmtiTagMap::tag_map_for(JvmtiEnv* env) {
JvmtiTagMap* tag_map = ((JvmtiEnvBase*)env)->acquire_tag_map(); JvmtiTagMap* tag_map = ((JvmtiEnvBase*)env)->tag_map_acquire();
if (tag_map == NULL) { if (tag_map == NULL) {
MutexLocker mu(JvmtiThreadState_lock); MutexLocker mu(JvmtiThreadState_lock);
tag_map = ((JvmtiEnvBase*)env)->tag_map(); tag_map = ((JvmtiEnvBase*)env)->tag_map();
...@@ -3282,7 +3282,7 @@ void JvmtiTagMap::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) { ...@@ -3282,7 +3282,7 @@ void JvmtiTagMap::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) {
if (JvmtiEnv::environments_might_exist()) { if (JvmtiEnv::environments_might_exist()) {
JvmtiEnvIterator it; JvmtiEnvIterator it;
for (JvmtiEnvBase* env = it.first(); env != NULL; env = it.next(env)) { for (JvmtiEnvBase* env = it.first(); env != NULL; env = it.next(env)) {
JvmtiTagMap* tag_map = env->acquire_tag_map(); JvmtiTagMap* tag_map = env->tag_map_acquire();
if (tag_map != NULL && !tag_map->is_empty()) { if (tag_map != NULL && !tag_map->is_empty()) {
tag_map->do_weak_oops(is_alive, f); tag_map->do_weak_oops(is_alive, f);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册