--- old/hotspot/src/share/vm/ci/ciTypeArray.cpp 2013-07-23 21:21:35.000000000 +0400 +++ new/hotspot/src/share/vm/ci/ciTypeArray.cpp 2013-07-23 21:21:35.000000000 +0400 @@ -39,5 +39,10 @@ jchar ciTypeArray::char_at(int index) { VM_ENTRY_MARK; assert(index >= 0 && index < length(), "out of range"); - return get_typeArrayOop()->char_at(index); + jchar c = element_value(index).as_char(); +#ifdef ASSERT + jchar d = get_typeArrayOop()->char_at(index); + assert(c == d, ""); +#endif //ASSERT + return c; }