Mercurial > hg > truffle
comparison src/share/vm/ci/ciMethod.hpp @ 2142:8012aa3ccede
4926272: methodOopDesc::method_from_bcp is unsafe
Reviewed-by: coleenp, jrose, kvn, dcubed
author | never |
---|---|
date | Thu, 13 Jan 2011 22:15:41 -0800 |
parents | 5ddfcf4b079e |
children | 2a23b1b5a0a8 |
comparison
equal
deleted
inserted
replaced
2130:34d64ad817f4 | 2142:8012aa3ccede |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 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. |
142 | 142 |
143 int comp_level(); | 143 int comp_level(); |
144 | 144 |
145 Bytecodes::Code java_code_at_bci(int bci) { | 145 Bytecodes::Code java_code_at_bci(int bci) { |
146 address bcp = code() + bci; | 146 address bcp = code() + bci; |
147 return Bytecodes::java_code_at(bcp); | 147 return Bytecodes::java_code_at(NULL, bcp); |
148 } | 148 } |
149 BCEscapeAnalyzer *get_bcea(); | 149 BCEscapeAnalyzer *get_bcea(); |
150 ciMethodBlocks *get_method_blocks(); | 150 ciMethodBlocks *get_method_blocks(); |
151 | 151 |
152 bool has_linenumber_table() const; // length unknown until decompression | 152 bool has_linenumber_table() const; // length unknown until decompression |