comparison src/share/vm/runtime/deoptimization.cpp @ 5749:12706c5b39bc

minor C1/C2 bugfix
author Christian Haeubl <haeubl@ssw.jku.at>
date Tue, 03 Jul 2012 18:02:03 +0200
parents 667c7bc2435b
children 957c266d8bc5
comparison
equal deleted inserted replaced
5748:63f0719bde9a 5749:12706c5b39bc
1289 1289
1290 ScopeDesc* trap_scope = cvf->scope(); 1290 ScopeDesc* trap_scope = cvf->scope();
1291 1291
1292 if (TraceDeoptimization) { 1292 if (TraceDeoptimization) {
1293 tty->print_cr(" 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()); 1293 tty->print_cr(" 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());
1294 #ifdef GRAAL
1294 if (thread->graal_deopt_info() != NULL) { 1295 if (thread->graal_deopt_info() != NULL) {
1295 oop deopt_info = thread->graal_deopt_info(); 1296 oop deopt_info = thread->graal_deopt_info();
1296 if (java_lang_String::is_instance(deopt_info)) { 1297 if (java_lang_String::is_instance(deopt_info)) {
1297 char buf[1024]; 1298 char buf[1024];
1298 java_lang_String::as_utf8_string(deopt_info, buf, 1024); 1299 java_lang_String::as_utf8_string(deopt_info, buf, 1024);
1301 tty->print_cr("deopt info:"); 1302 tty->print_cr("deopt info:");
1302 deopt_info->print(); 1303 deopt_info->print();
1303 } 1304 }
1304 thread->set_graal_deopt_info(NULL); 1305 thread->set_graal_deopt_info(NULL);
1305 } 1306 }
1307 #endif
1306 } 1308 }
1307 1309
1308 methodHandle trap_method = trap_scope->method(); 1310 methodHandle trap_method = trap_scope->method();
1309 int trap_bci = trap_scope->bci(); 1311 int trap_bci = trap_scope->bci();
1310 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); 1312 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci);