Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/synchronizer.cpp @ 6983:070d523b96a7
8001471: Klass::cast() does nothing
Summary: Remove function Klass::cast() and calls to it.
Reviewed-by: dholmes, coleenp
author | hseigel |
---|---|
date | Mon, 12 Nov 2012 16:15:05 -0500 |
parents | da91efe96a93 |
children | 2cb439954abf f34d701e952e |
comparison
equal
deleted
inserted
replaced
6981:8c413497f434 | 6983:070d523b96a7 |
---|---|
1321 if (TraceMonitorInflation) { | 1321 if (TraceMonitorInflation) { |
1322 if (object->is_instance()) { | 1322 if (object->is_instance()) { |
1323 ResourceMark rm; | 1323 ResourceMark rm; |
1324 tty->print_cr("Inflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", | 1324 tty->print_cr("Inflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", |
1325 (intptr_t) object, (intptr_t) object->mark(), | 1325 (intptr_t) object, (intptr_t) object->mark(), |
1326 Klass::cast(object->klass())->external_name()); | 1326 object->klass()->external_name()); |
1327 } | 1327 } |
1328 } | 1328 } |
1329 return m ; | 1329 return m ; |
1330 } | 1330 } |
1331 | 1331 |
1371 if (TraceMonitorInflation) { | 1371 if (TraceMonitorInflation) { |
1372 if (object->is_instance()) { | 1372 if (object->is_instance()) { |
1373 ResourceMark rm; | 1373 ResourceMark rm; |
1374 tty->print_cr("Inflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", | 1374 tty->print_cr("Inflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", |
1375 (intptr_t) object, (intptr_t) object->mark(), | 1375 (intptr_t) object, (intptr_t) object->mark(), |
1376 Klass::cast(object->klass())->external_name()); | 1376 object->klass()->external_name()); |
1377 } | 1377 } |
1378 } | 1378 } |
1379 return m ; | 1379 return m ; |
1380 } | 1380 } |
1381 } | 1381 } |
1438 TEVENT (deflate_idle_monitors - scavenge1) ; | 1438 TEVENT (deflate_idle_monitors - scavenge1) ; |
1439 if (TraceMonitorInflation) { | 1439 if (TraceMonitorInflation) { |
1440 if (obj->is_instance()) { | 1440 if (obj->is_instance()) { |
1441 ResourceMark rm; | 1441 ResourceMark rm; |
1442 tty->print_cr("Deflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", | 1442 tty->print_cr("Deflating object " INTPTR_FORMAT " , mark " INTPTR_FORMAT " , type %s", |
1443 (intptr_t) obj, (intptr_t) obj->mark(), Klass::cast(obj->klass())->external_name()); | 1443 (intptr_t) obj, (intptr_t) obj->mark(), obj->klass()->external_name()); |
1444 } | 1444 } |
1445 } | 1445 } |
1446 | 1446 |
1447 // Restore the header back to obj | 1447 // Restore the header back to obj |
1448 obj->release_set_mark(mid->header()); | 1448 obj->release_set_mark(mid->header()); |