src/share/vm/runtime/rframe.cpp

changeset 2103
3e8fbc61cee8
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
equal deleted inserted replaced
2102:53dbe853fb3a 2103:3e8fbc61cee8
1 /* 1 /*
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2010, 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.
118 } 118 }
119 119
120 int CompiledRFrame::cost() const { 120 int CompiledRFrame::cost() const {
121 nmethod* nm = top_method()->code(); 121 nmethod* nm = top_method()->code();
122 if (nm != NULL) { 122 if (nm != NULL) {
123 return nm->code_size(); 123 return nm->insts_size();
124 } else { 124 } else {
125 return top_method()->code_size(); 125 return top_method()->code_size();
126 } 126 }
127 } 127 }
128 128

mercurial