Mercurial > hg > truffle
comparison src/share/vm/oops/klass.cpp @ 5972:9a9bb0010c91
7156764: Remove unused size parameter from some CollectedHeap methods
Summary: Some minor cleanups
Reviewed-by: tonyp, jwilhelm
author | brutisso |
---|---|
date | Tue, 27 Mar 2012 10:29:59 +0200 |
parents | 34e2e90e7182 |
children | b632e80fc9dc |
comparison
equal
deleted
inserted
replaced
5965:cc74fa5a91a9 | 5972:9a9bb0010c91 |
---|---|
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. |
172 klassOop ek = base_create_klass_oop(klass, size, vtbl, THREAD); | 172 klassOop ek = base_create_klass_oop(klass, size, vtbl, THREAD); |
173 return KlassHandle(THREAD, ek); | 173 return KlassHandle(THREAD, ek); |
174 } | 174 } |
175 | 175 |
176 void Klass_vtbl::post_new_init_klass(KlassHandle& klass, | 176 void Klass_vtbl::post_new_init_klass(KlassHandle& klass, |
177 klassOop new_klass, | 177 klassOop new_klass) const { |
178 int size) const { | |
179 assert(!new_klass->klass_part()->null_vtbl(), "Not a complete klass"); | 178 assert(!new_klass->klass_part()->null_vtbl(), "Not a complete klass"); |
180 CollectedHeap::post_allocation_install_obj_klass(klass, new_klass, size); | 179 CollectedHeap::post_allocation_install_obj_klass(klass, new_klass); |
181 } | 180 } |
182 | 181 |
183 void* Klass_vtbl::operator new(size_t ignored, KlassHandle& klass, | 182 void* Klass_vtbl::operator new(size_t ignored, KlassHandle& klass, |
184 int size, TRAPS) { | 183 int size, TRAPS) { |
185 // The vtable pointer is installed during the execution of | 184 // The vtable pointer is installed during the execution of |