src/share/vm/oops/objArrayKlassKlass.cpp

changeset 3682
fc9d8850ab8b
parent 2658
c7f3d0b4570f
equal deleted inserted replaced
3681:51612f0c0a79 3682:fc9d8850ab8b
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
135 idx += len; 135 idx += len;
136 if (element_klass->oop_is_instance()) { 136 if (element_klass->oop_is_instance()) {
137 new_str[idx++] = ';'; 137 new_str[idx++] = ';';
138 } 138 }
139 new_str[idx++] = '\0'; 139 new_str[idx++] = '\0';
140 name = SymbolTable::new_symbol(new_str, CHECK_0); 140 name = SymbolTable::new_permanent_symbol(new_str, CHECK_0);
141 if (element_klass->oop_is_instance()) { 141 if (element_klass->oop_is_instance()) {
142 instanceKlass* ik = instanceKlass::cast(element_klass()); 142 instanceKlass* ik = instanceKlass::cast(element_klass());
143 ik->set_array_name(name); 143 ik->set_array_name(name);
144 } 144 }
145 } 145 }

mercurial