1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. |
115 constantPoolCacheKlass* ck = constantPoolCacheKlass::cast(Universe::constantPoolCacheKlassObj()); |
115 constantPoolCacheKlass* ck = constantPoolCacheKlass::cast(Universe::constantPoolCacheKlassObj()); |
116 return ck->allocate(length, CHECK_NULL); |
116 return ck->allocate(length, CHECK_NULL); |
117 } |
117 } |
118 |
118 |
119 |
119 |
120 klassOop oopFactory::new_instanceKlass(int vtable_len, int itable_len, |
120 klassOop oopFactory::new_instanceKlass(Symbol* name, int vtable_len, int itable_len, |
121 int static_field_size, |
121 int static_field_size, |
122 unsigned int nonstatic_oop_map_count, |
122 unsigned int nonstatic_oop_map_count, |
123 ReferenceType rt, TRAPS) { |
123 ReferenceType rt, TRAPS) { |
124 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); |
124 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); |
125 return ikk->allocate_instance_klass(vtable_len, itable_len, static_field_size, nonstatic_oop_map_count, rt, CHECK_NULL); |
125 return ikk->allocate_instance_klass(name, vtable_len, itable_len, static_field_size, nonstatic_oop_map_count, rt, CHECK_NULL); |
126 } |
126 } |
127 |
127 |
128 |
128 |
129 constMethodOop oopFactory::new_constMethod(int byte_code_size, |
129 constMethodOop oopFactory::new_constMethod(int byte_code_size, |
130 int compressed_line_number_size, |
130 int compressed_line_number_size, |