src/share/vm/classfile/javaClasses.hpp

Print this page

        

*** 129,139 **** // Accessors static typeArrayOop value(oop java_string) { assert(initialized && (value_offset > 0), "Must be initialized"); assert(is_instance(java_string), "must be java_string"); ! return (typeArrayOop) java_string->obj_field(value_offset); } static unsigned int hash(oop java_string) { assert(initialized && (hash_offset > 0), "Must be initialized"); assert(is_instance(java_string), "must be java_string"); return java_string->int_field(hash_offset); --- 129,141 ---- // Accessors static typeArrayOop value(oop java_string) { assert(initialized && (value_offset > 0), "Must be initialized"); assert(is_instance(java_string), "must be java_string"); ! oop value = java_string->obj_field(value_offset); ! assert((value->is_typeArray() && TypeArrayKlass::cast(value->klass())->element_type() == T_CHAR), "expect char[]"); ! return typeArrayOop(value); } static unsigned int hash(oop java_string) { assert(initialized && (hash_offset > 0), "Must be initialized"); assert(is_instance(java_string), "must be java_string"); return java_string->int_field(hash_offset);
*** 343,354 **** // Returns the JavaThread associated with the thread obj static JavaThread* thread(oop java_thread); // Set JavaThread for instance static void set_thread(oop java_thread, JavaThread* thread); // Name ! static typeArrayOop name(oop java_thread); ! static void set_name(oop java_thread, typeArrayOop name); // Priority static ThreadPriority priority(oop java_thread); static void set_priority(oop java_thread, ThreadPriority priority); // Thread group static oop threadGroup(oop java_thread); --- 345,356 ---- // Returns the JavaThread associated with the thread obj static JavaThread* thread(oop java_thread); // Set JavaThread for instance static void set_thread(oop java_thread, JavaThread* thread); // Name ! static oop name(oop java_thread); ! static void set_name(oop java_thread, oop name); // Priority static ThreadPriority priority(oop java_thread); static void set_priority(oop java_thread, ThreadPriority priority); // Thread group static oop threadGroup(oop java_thread);