equal
deleted
inserted
replaced
50 return java_string->int_field(hash_offset) != 0 || java_string->bool_field(hashIsZero_offset) != 0; |
50 return java_string->int_field(hash_offset) != 0 || java_string->bool_field(hashIsZero_offset) != 0; |
51 } |
51 } |
52 |
52 |
53 // Accessors |
53 // Accessors |
54 bool java_lang_String::value_equals(typeArrayOop str_value1, typeArrayOop str_value2) { |
54 bool java_lang_String::value_equals(typeArrayOop str_value1, typeArrayOop str_value2) { |
55 return (oopDesc::equals(str_value1, str_value2) || |
55 return ((str_value1 == str_value2) || |
56 (str_value1->length() == str_value2->length() && |
56 (str_value1->length() == str_value2->length() && |
57 (!memcmp(str_value1->base(T_BYTE), |
57 (!memcmp(str_value1->base(T_BYTE), |
58 str_value2->base(T_BYTE), |
58 str_value2->base(T_BYTE), |
59 str_value2->length() * sizeof(jbyte))))); |
59 str_value2->length() * sizeof(jbyte))))); |
60 } |
60 } |
272 // "no LineNumberTable". JDK tests for -2. |
272 // "no LineNumberTable". JDK tests for -2. |
273 line_number = -2; |
273 line_number = -2; |
274 } else { |
274 } else { |
275 // Returns -1 if no LineNumberTable, and otherwise actual line number |
275 // Returns -1 if no LineNumberTable, and otherwise actual line number |
276 line_number = method->line_number_from_bci(bci); |
276 line_number = method->line_number_from_bci(bci); |
277 if (line_number == -1 && ShowHiddenFrames) { |
|
278 line_number = bci + 1000000; |
|
279 } |
|
280 } |
277 } |
281 return line_number; |
278 return line_number; |
282 } |
279 } |
283 |
280 |
284 inline Symbol* Backtrace::get_source_file_name(InstanceKlass* holder, int version) { |
281 inline Symbol* Backtrace::get_source_file_name(InstanceKlass* holder, int version) { |