< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page

        

@@ -79,11 +79,10 @@
   f(java_lang_Module) \
   f(java_lang_StackTraceElement) \
   f(java_lang_StackFrameInfo) \
   f(java_lang_LiveStackFrameInfo) \
   f(java_util_concurrent_locks_AbstractOwnableSynchronizer) \
-  f(jdk_internal_misc_UnsafeConstants) \
   //end
 
 #define BASIC_JAVA_CLASSES_DO(f) \
         BASIC_JAVA_CLASSES_DO_PART1(f) \
         BASIC_JAVA_CLASSES_DO_PART2(f)

@@ -92,11 +91,10 @@
 
 class java_lang_String : AllStatic {
  private:
   static int value_offset;
   static int hash_offset;
-  static int hashIsZero_offset;
   static int coder_offset;
 
   static bool initialized;
 
   static Handle basic_create(int length, bool byte_arr, TRAPS);

@@ -131,26 +129,23 @@
   }
   static int hash_offset_in_bytes()   {
     assert(initialized && (hash_offset > 0), "Must be initialized");
     return hash_offset;
   }
-  static int hashIsZero_offset_in_bytes()   {
-    assert(initialized && (hashIsZero_offset > 0), "Must be initialized");
-    return hashIsZero_offset;
-  }
   static int coder_offset_in_bytes()   {
     assert(initialized && (coder_offset > 0), "Must be initialized");
     return coder_offset;
   }
 
   static inline void set_value_raw(oop string, typeArrayOop buffer);
   static inline void set_value(oop string, typeArrayOop buffer);
+  static inline void set_hash(oop string, unsigned int hash);
 
   // Accessors
   static inline typeArrayOop value(oop java_string);
   static inline typeArrayOop value_no_keepalive(oop java_string);
-  static inline bool hash_is_set(oop string);
+  static inline unsigned int hash(oop java_string);
   static inline bool is_latin1(oop java_string);
   static inline int length(oop java_string);
   static inline int length(oop java_string, typeArrayOop string_value);
   static int utf8_length(oop java_string);
   static int utf8_length(oop java_string, typeArrayOop string_value);

@@ -1061,12 +1056,10 @@
   static int vmtarget_offset_in_bytes() { return _vmtarget_offset; }
 
   static Method* vmtarget(oop resolved_method);
   static void set_vmtarget(oop resolved_method, Method* method);
 
-  static void set_vmholder(oop resolved_method, oop holder);
-
   // find or create resolved member name
   static oop find_resolved_method(const methodHandle& m, TRAPS);
 
   static bool is_instance(oop resolved_method);
 };

@@ -1488,19 +1481,10 @@
   static void compute_offsets();
   static oop  get_owner_threadObj(oop obj);
   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
 };
 
- // Interface to jdk.internal.misc.UnsafeConsants
-
-class jdk_internal_misc_UnsafeConstants : AllStatic {
- public:
-  static void set_unsafe_constants();
-  static void compute_offsets() { }
-  static void serialize_offsets(SerializeClosure* f) { }
-};
-
 // Use to declare fields that need to be injected into Java classes
 // for the JVM to use.  The name_index and signature_index are
 // declared in vmSymbols.  The may_be_java flag is used to declare
 // fields that might already exist in Java but should be injected if
 // they don't.  Otherwise the field is unconditionally injected and
< prev index next >