< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page
rev 58870 : 8242452: During module definition, move conversion of packages from native to VM
8242290: Pointless verification in get_package_entry_by_name
Reviewed-by: lfoltan, alanb, iklam


 151   static int coder_offset_in_bytes()   {
 152     assert(initialized && (coder_offset > 0), "Must be initialized");
 153     return coder_offset;
 154   }
 155 
 156   static inline void set_value_raw(oop string, typeArrayOop buffer);
 157   static inline void set_value(oop string, typeArrayOop buffer);
 158 
 159   // Accessors
 160   static inline typeArrayOop value(oop java_string);
 161   static inline typeArrayOop value_no_keepalive(oop java_string);
 162   static inline bool hash_is_set(oop string);
 163   static inline bool is_latin1(oop java_string);
 164   static inline int length(oop java_string);
 165   static inline int length(oop java_string, typeArrayOop string_value);
 166   static int utf8_length(oop java_string);
 167   static int utf8_length(oop java_string, typeArrayOop string_value);
 168 
 169   // String converters
 170   static char*  as_utf8_string(oop java_string);


 171   static char*  as_utf8_string(oop java_string, char* buf, int buflen);
 172   static char*  as_utf8_string(oop java_string, int start, int len);
 173   static char*  as_utf8_string(oop java_string, typeArrayOop value, char* buf, int buflen);
 174   static char*  as_utf8_string(oop java_string, typeArrayOop value, int start, int len, char* buf, int buflen);
 175   static char*  as_platform_dependent_str(Handle java_string, TRAPS);
 176   static jchar* as_unicode_string(oop java_string, int& length, TRAPS);
 177   // produce an ascii string with all other values quoted using \u####
 178   static char*  as_quoted_ascii(oop java_string);
 179 
 180   // Compute the hash value for a java.lang.String object which would
 181   // contain the characters passed in.
 182   //
 183   // As the hash value used by the String object itself, in
 184   // String.hashCode().  This value is normally calculated in Java code
 185   // in the String.hashCode method(), but is precomputed for String
 186   // objects in the shared archive file.
 187   // hash P(31) from Kernighan & Ritchie
 188   //
 189   // For this reason, THIS ALGORITHM MUST MATCH String.hashCode().
 190   static unsigned int hash_code(const jchar* s, int len) {




 151   static int coder_offset_in_bytes()   {
 152     assert(initialized && (coder_offset > 0), "Must be initialized");
 153     return coder_offset;
 154   }
 155 
 156   static inline void set_value_raw(oop string, typeArrayOop buffer);
 157   static inline void set_value(oop string, typeArrayOop buffer);
 158 
 159   // Accessors
 160   static inline typeArrayOop value(oop java_string);
 161   static inline typeArrayOop value_no_keepalive(oop java_string);
 162   static inline bool hash_is_set(oop string);
 163   static inline bool is_latin1(oop java_string);
 164   static inline int length(oop java_string);
 165   static inline int length(oop java_string, typeArrayOop string_value);
 166   static int utf8_length(oop java_string);
 167   static int utf8_length(oop java_string, typeArrayOop string_value);
 168 
 169   // String converters
 170   static char*  as_utf8_string(oop java_string);
 171   static char*  as_utf8_string(oop java_string, int& length);
 172   static char*  as_utf8_string_full(oop java_string, char* buf, int buflen, int& length);
 173   static char*  as_utf8_string(oop java_string, char* buf, int buflen);
 174   static char*  as_utf8_string(oop java_string, int start, int len);
 175   static char*  as_utf8_string(oop java_string, typeArrayOop value, char* buf, int buflen);
 176   static char*  as_utf8_string(oop java_string, typeArrayOop value, int start, int len, char* buf, int buflen);
 177   static char*  as_platform_dependent_str(Handle java_string, TRAPS);
 178   static jchar* as_unicode_string(oop java_string, int& length, TRAPS);
 179   // produce an ascii string with all other values quoted using \u####
 180   static char*  as_quoted_ascii(oop java_string);
 181 
 182   // Compute the hash value for a java.lang.String object which would
 183   // contain the characters passed in.
 184   //
 185   // As the hash value used by the String object itself, in
 186   // String.hashCode().  This value is normally calculated in Java code
 187   // in the String.hashCode method(), but is precomputed for String
 188   // objects in the shared archive file.
 189   // hash P(31) from Kernighan & Ritchie
 190   //
 191   // For this reason, THIS ALGORITHM MUST MATCH String.hashCode().
 192   static unsigned int hash_code(const jchar* s, int len) {


< prev index next >