Mercurial > hg > truffle
changeset 12331:d8d059e90ec1
8025599: Missing store barrier with OptimizeStringConcat
Reviewed-by: kvn, twisti
Contributed-by: Axel Siebenborn <axel.siebenborn@sap.com>
author | twisti |
---|---|
date | Mon, 30 Sep 2013 15:42:39 -0700 |
parents | 29bdcf12457c |
children | dc261f466b6d |
files | src/share/vm/opto/graphKit.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp Fri Sep 27 11:52:24 2013 +0400 +++ b/src/share/vm/opto/graphKit.cpp Mon Sep 30 15:42:39 2013 -0700 @@ -3849,9 +3849,9 @@ const TypeInstPtr* string_type = TypeInstPtr::make(TypePtr::NotNull, C->env()->String_klass(), false, NULL, 0); const TypePtr* value_field_type = string_type->add_offset(value_offset); - int value_field_idx = C->get_alias_index(value_field_type); - store_to_memory(ctrl, basic_plus_adr(str, value_offset), - value, T_OBJECT, value_field_idx); + + store_oop_to_object(ctrl, str, basic_plus_adr(str, value_offset), value_field_type, + value, TypeAryPtr::CHARS, T_OBJECT); } void GraphKit::store_String_length(Node* ctrl, Node* str, Node* value) {