Mercurial > hg > graal-jvmci-8
changeset 9571:f0ef8f58a1d9
Use root method for deopt reason collecting if possible in non-graalvm
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 06 May 2013 15:25:18 +0200 |
parents | 314814fa0223 |
children | d6bf345d58c1 |
files | src/share/vm/runtime/deoptimization.cpp |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Mon May 06 14:39:31 2013 +0200 +++ b/src/share/vm/runtime/deoptimization.cpp Mon May 06 15:25:18 2013 +0200 @@ -1345,8 +1345,12 @@ bool create_if_missing = ProfileTraps; methodHandle profiled_method; -#ifdef GRAALVM - profiled_method = nm->method(); +#ifdef GRAAL + if (nm->is_compiled_by_graal()) { + profiled_method = nm->method(); + } else { + profiled_method = trap_method; + } #else profiled_method = trap_method; #endif