< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page

        

*** 79,89 **** 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) --- 79,88 ----
*** 92,102 **** 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); --- 91,100 ----
*** 131,156 **** } 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); // 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 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); --- 129,151 ---- } static int hash_offset_in_bytes() { assert(initialized && (hash_offset > 0), "Must be initialized"); return hash_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 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);
*** 203,213 **** // Conversion between '.' and '/' formats static Handle externalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '/', '.', THREAD); } static Handle internalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '.', '/', THREAD); } // Conversion ! static Symbol* as_symbol(oop java_string); static Symbol* as_symbol_or_null(oop java_string); // Testers static bool is_instance(oop obj); static inline bool is_instance_inlined(oop obj); --- 198,208 ---- // Conversion between '.' and '/' formats static Handle externalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '/', '.', THREAD); } static Handle internalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '.', '/', THREAD); } // Conversion ! static Symbol* as_symbol(oop java_string, TRAPS); static Symbol* as_symbol_or_null(oop java_string); // Testers static bool is_instance(oop obj); static inline bool is_instance_inlined(oop obj);
*** 289,299 **** // Conversion static Klass* as_Klass(oop java_class); static Klass* as_Klass_raw(oop java_class); static void set_klass(oop java_class, Klass* klass); static BasicType as_BasicType(oop java_class, Klass** reference_klass = NULL); ! static Symbol* as_signature(oop java_class, bool intern_if_not_found); static void print_signature(oop java_class, outputStream *st); static const char* as_external_name(oop java_class); // Testing static bool is_instance(oop obj); --- 284,294 ---- // Conversion static Klass* as_Klass(oop java_class); static Klass* as_Klass_raw(oop java_class); static void set_klass(oop java_class, Klass* klass); static BasicType as_BasicType(oop java_class, Klass** reference_klass = NULL); ! static Symbol* as_signature(oop java_class, bool intern_if_not_found, TRAPS); static void print_signature(oop java_class, outputStream *st); static const char* as_external_name(oop java_class); // Testing static bool is_instance(oop obj);
*** 369,378 **** --- 364,374 ---- static int _stillborn_offset; static int _stackSize_offset; static int _tid_offset; static int _thread_status_offset; static int _park_blocker_offset; + static int _park_event_offset ; static void compute_offsets(); public: static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
*** 410,419 **** --- 406,421 ---- static jlong thread_id(oop java_thread); // Blocker object responsible for thread parking static oop park_blocker(oop java_thread); + // Pointer to type-stable park handler, encoded as jlong. + // Should be set when apparently null + // For details, see unsafe.cpp Unsafe_Unpark + static jlong park_event(oop java_thread); + static bool set_park_event(oop java_thread, jlong ptr); + // Java Thread Status for JVMTI and M&M use. // This thread status info is saved in threadStatus field of // java.lang.Thread java class. enum ThreadStatus { NEW = 0,
*** 1054,1065 **** 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); }; --- 1056,1065 ----
*** 1164,1174 **** static int ptype_count(oop mt); static int ptype_slot_count(oop mt); // extra counts for long/double static int rtype_slot_count(oop mt); // extra counts for long/double ! static Symbol* as_signature(oop mt, bool intern_if_not_found); static void print_signature(oop mt, outputStream* st); static bool is_instance(oop obj); static bool equals(oop mt1, oop mt2); --- 1164,1174 ---- static int ptype_count(oop mt); static int ptype_slot_count(oop mt); // extra counts for long/double static int rtype_slot_count(oop mt); // extra counts for long/double ! static Symbol* as_signature(oop mt, bool intern_if_not_found, TRAPS); static void print_signature(oop mt, outputStream* st); static bool is_instance(oop obj); static bool equals(oop mt1, oop mt2);
*** 1366,1380 **** int version, int bci, Symbol* name, TRAPS); static void compute_offsets(); static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN; - #if INCLUDE_JVMCI - static void decode(Handle mirror, int method, int version, int bci, int cpref, Symbol*& methodName, Symbol*& fileName, int& lineNumber); - static void decode(Handle mirror, methodHandle method, int bci, Symbol*& methodName, Symbol*& fileName, int& lineNumber); - #endif - // Debugging friend class JavaClasses; }; --- 1366,1375 ----
*** 1486,1504 **** 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 --- 1481,1490 ----
< prev index next >