Mercurial > hg > truffle
comparison src/share/vm/runtime/vframeArray.cpp @ 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 | f95d63e2154a |
children | d25d4ca69222 3d2ab563047a |
comparison
equal
deleted
inserted
replaced
2130:34d64ad817f4 | 2142:8012aa3ccede |
---|---|
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. |
397 tty->cr(); | 397 tty->cr(); |
398 // method()->print_codes(); | 398 // method()->print_codes(); |
399 } else if (TraceDeoptimization) { | 399 } else if (TraceDeoptimization) { |
400 tty->print(" "); | 400 tty->print(" "); |
401 method()->print_value(); | 401 method()->print_value(); |
402 Bytecodes::Code code = Bytecodes::java_code_at(bcp); | 402 Bytecodes::Code code = Bytecodes::java_code_at(method(), bcp); |
403 int bci = method()->bci_from(bcp); | 403 int bci = method()->bci_from(bcp); |
404 tty->print(" - %s", Bytecodes::name(code)); | 404 tty->print(" - %s", Bytecodes::name(code)); |
405 tty->print(" @ bci %d ", bci); | 405 tty->print(" @ bci %d ", bci); |
406 tty->print_cr("sp = " PTR_FORMAT, iframe()->sp()); | 406 tty->print_cr("sp = " PTR_FORMAT, iframe()->sp()); |
407 } | 407 } |