1.1 --- a/src/share/vm/opto/library_call.cpp Mon Sep 09 19:53:28 2013 +0200 1.2 +++ b/src/share/vm/opto/library_call.cpp Tue Sep 10 14:51:48 2013 -0700 1.3 @@ -1280,6 +1280,11 @@ 1.4 const TypeAry* target_array_type = TypeAry::make(TypeInt::CHAR, TypeInt::make(0, target_length, Type::WidenMin)); 1.5 const TypeAryPtr* target_type = TypeAryPtr::make(TypePtr::BotPTR, target_array_type, target_array->klass(), true, Type::OffsetBot); 1.6 1.7 + // String.value field is known to be @Stable. 1.8 + if (UseImplicitStableValues) { 1.9 + target = cast_array_to_stable(target, target_type); 1.10 + } 1.11 + 1.12 IdealKit kit(this, false, true); 1.13 #define __ kit. 1.14 Node* zero = __ ConI(0);