Mercurial > hg > truffle
comparison src/share/vm/classfile/javaClasses.hpp @ 18700:a4fbcdce06c8
[GRAAL-914] SPARC VM Crash when run with -G:+PrintIdealGraphFile and -XX:+PrintDeoptimizationDetails
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 15 Dec 2014 19:32:12 +0100 |
parents | 52b4284cb496 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
18670:8aeee4179e22 | 18700:a4fbcdce06c8 |
---|---|
151 assert(initialized, "Must be initialized"); | 151 assert(initialized, "Must be initialized"); |
152 assert(is_instance(java_string), "must be java_string"); | 152 assert(is_instance(java_string), "must be java_string"); |
153 if (count_offset > 0) { | 153 if (count_offset > 0) { |
154 return java_string->int_field(count_offset); | 154 return java_string->int_field(count_offset); |
155 } else { | 155 } else { |
156 return ((typeArrayOop)java_string->obj_field(value_offset))->length(); | 156 typeArrayOop value_array = ((typeArrayOop)java_string->obj_field(value_offset)); |
157 if(value_array == NULL) { | |
158 return 0; | |
159 } else { | |
160 return value_array->length(); | |
161 } | |
157 } | 162 } |
158 } | 163 } |
159 static int utf8_length(oop java_string); | 164 static int utf8_length(oop java_string); |
160 | 165 |
161 // String converters | 166 // String converters |