changeset 8247:e57fce7b6ad2

8077936: Remove the unused java_lang_invoke_CallSite::target_volatile Reviewed-by: vlivanov, jrose
author stefank
date Fri, 17 Apr 2015 10:46:41 +0200
parents 4864e4370e54
children 14d4bc33ff68 5aa85f931066
files src/share/vm/classfile/javaClasses.hpp src/share/vm/classfile/javaClasses.inline.hpp src/share/vm/oops/oop.hpp src/share/vm/oops/oop.inline.hpp
diffstat 4 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/javaClasses.hpp	Fri Apr 17 08:09:41 2015 +0200
+++ b/src/share/vm/classfile/javaClasses.hpp	Fri Apr 17 10:46:41 2015 +0200
@@ -1181,8 +1181,6 @@
   // Accessors
   static oop              target(         oop site);
   static void         set_target(         oop site, oop target);
-
-  static volatile oop     target_volatile(oop site);
   static void         set_target_volatile(oop site, oop target);
 
   // Testers
--- a/src/share/vm/classfile/javaClasses.inline.hpp	Fri Apr 17 08:09:41 2015 +0200
+++ b/src/share/vm/classfile/javaClasses.inline.hpp	Fri Apr 17 10:46:41 2015 +0200
@@ -29,10 +29,6 @@
 #include "oops/oop.inline.hpp"
 #include "oops/oopsHierarchy.hpp"
 
-inline volatile oop java_lang_invoke_CallSite::target_volatile(oop site) {
-  return oop((oopDesc *)(site->obj_field_volatile(_target_offset)));
-}
-
 inline void java_lang_invoke_CallSite::set_target_volatile(oop site, oop target) {
   site->obj_field_put_volatile(_target_offset, target);
 }
--- a/src/share/vm/oops/oop.hpp	Fri Apr 17 08:09:41 2015 +0200
+++ b/src/share/vm/oops/oop.hpp	Fri Apr 17 10:46:41 2015 +0200
@@ -201,7 +201,6 @@
 
   // Access to fields in a instanceOop through these methods.
   oop obj_field(int offset) const;
-  volatile oop obj_field_volatile(int offset) const;
   void obj_field_put(int offset, oop value);
   void obj_field_put_raw(int offset, oop value);
   void obj_field_put_volatile(int offset, oop value);
--- a/src/share/vm/oops/oop.inline.hpp	Fri Apr 17 08:09:41 2015 +0200
+++ b/src/share/vm/oops/oop.inline.hpp	Fri Apr 17 10:46:41 2015 +0200
@@ -284,11 +284,6 @@
     load_decode_heap_oop(obj_field_addr<narrowOop>(offset)) :
     load_decode_heap_oop(obj_field_addr<oop>(offset));
 }
-inline volatile oop oopDesc::obj_field_volatile(int offset) const {
-  volatile oop value = obj_field(offset);
-  OrderAccess::acquire();
-  return value;
-}
 inline void oopDesc::obj_field_put(int offset, oop value) {
   UseCompressedOops ? oop_store(obj_field_addr<narrowOop>(offset), value) :
                       oop_store(obj_field_addr<oop>(offset),       value);