mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8136421: JEP 243: Java-Level JVM Compiler Interface
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
parent
f5b4bb46f5
commit
16526e000e
505 changed files with 50394 additions and 915 deletions
|
@ -157,7 +157,12 @@ class java_lang_String : AllStatic {
|
|||
if (count_offset > 0) {
|
||||
return java_string->int_field(count_offset);
|
||||
} else {
|
||||
return ((typeArrayOop)java_string->obj_field(value_offset))->length();
|
||||
typeArrayOop value_array = ((typeArrayOop)java_string->obj_field(value_offset));
|
||||
if (value_array == NULL) {
|
||||
return 0;
|
||||
} else {
|
||||
return value_array->length();
|
||||
}
|
||||
}
|
||||
}
|
||||
static int utf8_length(oop java_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue