Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/deoptimization.cpp @ 3017:b4ba003eb11d
Fixed unnecessary node in the graph builder.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Sat, 18 Jun 2011 14:51:18 +0200 |
parents | c7783b6773ea |
children | 5857923e563c |
comparison
equal
deleted
inserted
replaced
3016:2f5f6ffbafa0 | 3017:b4ba003eb11d |
---|---|
1221 DeoptAction action = trap_request_action(trap_request); | 1221 DeoptAction action = trap_request_action(trap_request); |
1222 jint unloaded_class_index = trap_request_index(trap_request); // CP idx or -1 | 1222 jint unloaded_class_index = trap_request_index(trap_request); // CP idx or -1 |
1223 | 1223 |
1224 // tty->print_cr("trap_request: %08x, cpi: %i, pc: %016x", trap_request, unloaded_class_index, fr.pc()); | 1224 // tty->print_cr("trap_request: %08x, cpi: %i, pc: %016x", trap_request, unloaded_class_index, fr.pc()); |
1225 | 1225 |
1226 | |
1226 Events::log("Uncommon trap occurred @" INTPTR_FORMAT " unloaded_class_index = %d", fr.pc(), (int) trap_request); | 1227 Events::log("Uncommon trap occurred @" INTPTR_FORMAT " unloaded_class_index = %d", fr.pc(), (int) trap_request); |
1227 vframe* vf = vframe::new_vframe(&fr, ®_map, thread); | 1228 vframe* vf = vframe::new_vframe(&fr, ®_map, thread); |
1228 compiledVFrame* cvf = compiledVFrame::cast(vf); | 1229 compiledVFrame* cvf = compiledVFrame::cast(vf); |
1229 | 1230 |
1230 nmethod* nm = cvf->code(); | 1231 nmethod* nm = cvf->code(); |
1231 | |
1232 ScopeDesc* trap_scope = cvf->scope(); | 1232 ScopeDesc* trap_scope = cvf->scope(); |
1233 | |
1234 if (TraceDeoptimization) { | |
1235 tty->print_cr("Deoptimization: bci=%d pc=%d, relative_pc=%d, method=%s", trap_scope->bci(), fr.pc(), fr.pc() - nm->code_begin(), trap_scope->method()->name()->as_C_string()); | |
1236 } | |
1237 | |
1233 methodHandle trap_method = trap_scope->method(); | 1238 methodHandle trap_method = trap_scope->method(); |
1234 int trap_bci = trap_scope->bci(); | 1239 int trap_bci = trap_scope->bci(); |
1235 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); | 1240 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); |
1236 | 1241 |
1237 // Record this event in the histogram. | 1242 // Record this event in the histogram. |