Mercurial > hg > graal-compiler
comparison src/share/vm/oops/objArrayKlassKlass.cpp @ 5979:fc9d8850ab8b
7150058: Allocate symbols from null boot loader to an arena for NMT
Summary: Move symbol allocation to an arena so NMT doesn't have to track them at startup.
Reviewed-by: never, kamg, zgu
author | coleenp |
---|---|
date | Fri, 23 Mar 2012 11:16:05 -0400 |
parents | c7f3d0b4570f |
children |
comparison
equal
deleted
inserted
replaced
5978:51612f0c0a79 | 5979: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 } |