comparison src/share/vm/memory/oopFactory.cpp @ 5998:49036505ab5f

7154670: The instanceKlass _implementors[] and _nof_implementors are not needed for non-interface klass. Summary: Change implementor to embedded instanceKlass field. Reviewed-by: sspitsyn, minqi, coleenp
author jiangli
date Thu, 29 Mar 2012 22:18:56 -0400
parents a92cdbac8b9e
children 8bafad97cd26
comparison
equal deleted inserted replaced
5970:0698f5ef5535 5998:49036505ab5f
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.
125 125
126 126
127 klassOop oopFactory::new_instanceKlass(Symbol* name, int vtable_len, int itable_len, 127 klassOop oopFactory::new_instanceKlass(Symbol* name, int vtable_len, int itable_len,
128 int static_field_size, 128 int static_field_size,
129 unsigned int nonstatic_oop_map_count, 129 unsigned int nonstatic_oop_map_count,
130 AccessFlags access_flags,
130 ReferenceType rt, TRAPS) { 131 ReferenceType rt, TRAPS) {
131 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); 132 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj());
132 return ikk->allocate_instance_klass(name, vtable_len, itable_len, static_field_size, nonstatic_oop_map_count, rt, CHECK_NULL); 133 return ikk->allocate_instance_klass(name, vtable_len, itable_len,
134 static_field_size, nonstatic_oop_map_count,
135 access_flags, rt, CHECK_NULL);
133 } 136 }
134 137
135 138
136 constMethodOop oopFactory::new_constMethod(int byte_code_size, 139 constMethodOop oopFactory::new_constMethod(int byte_code_size,
137 int compressed_line_number_size, 140 int compressed_line_number_size,