comparison src/share/vm/runtime/deoptimization.cpp @ 13220:2b43fcc68add

Put _pending_deoptimization and _pending_monitorenter under ifdef GRAAL
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 02 Dec 2013 18:06:00 +0100
parents 51e97f88c771
children 5a9afbf72714
comparison
equal deleted inserted replaced
13219:fdc3925a8e74 13220:2b43fcc68add
1366 ); 1366 );
1367 } 1367 }
1368 1368
1369 methodHandle trap_method = trap_scope->method(); 1369 methodHandle trap_method = trap_scope->method();
1370 int trap_bci = trap_scope->bci(); 1370 int trap_bci = trap_scope->bci();
1371 #ifdef GRAAL
1371 if (trap_bci == SynchronizationEntryBCI) { 1372 if (trap_bci == SynchronizationEntryBCI) {
1372 trap_bci = 0; 1373 trap_bci = 0;
1373 Thread::current()->set_pending_monitorenter(true); 1374 Thread::current()->set_pending_monitorenter(true);
1374 } 1375 }
1376 #endif
1375 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); 1377 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci);
1376 1378
1377 if (trap_scope->rethrow_exception()) { 1379 if (trap_scope->rethrow_exception()) {
1378 if (PrintDeoptimizationDetails) { 1380 if (PrintDeoptimizationDetails) {
1379 tty->print_cr("Exception to be rethrown in the interpreter for method %s::%s at bci %d", trap_method->method_holder()->name()->as_C_string(), trap_method->name()->as_C_string(), trap_bci); 1381 tty->print_cr("Exception to be rethrown in the interpreter for method %s::%s at bci %d", trap_method->method_holder()->name()->as_C_string(), trap_method->name()->as_C_string(), trap_bci);