comparison src/share/vm/memory/metaspaceShared.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 716c64bda5ba
children 6c3f47d964f3
comparison
equal deleted inserted replaced
6981:8c413497f434 6983:070d523b96a7
429 429
430 memmove(vtbl_list, saved_vtbl, vtbl_list_size * sizeof(void*)); 430 memmove(vtbl_list, saved_vtbl, vtbl_list_size * sizeof(void*));
431 } 431 }
432 432
433 static void link_shared_classes(Klass* obj, TRAPS) { 433 static void link_shared_classes(Klass* obj, TRAPS) {
434 Klass* k = Klass::cast(obj); 434 Klass* k = obj;
435 if (k->oop_is_instance()) { 435 if (k->oop_is_instance()) {
436 InstanceKlass* ik = (InstanceKlass*) k; 436 InstanceKlass* ik = (InstanceKlass*) k;
437 // Link the class to cause the bytecodes to be rewritten and the 437 // Link the class to cause the bytecodes to be rewritten and the
438 // cpcache to be created. 438 // cpcache to be created.
439 if (ik->init_state() < InstanceKlass::linked) { 439 if (ik->init_state() < InstanceKlass::linked) {