# HG changeset patch # User Christian Haeubl # Date 1368805381 -7200 # Node ID 2461285a2f90ba06aa9eb30c1285be956cd86d01 # Parent 51545c49083a46688c9ae0fe9157a4cf74c709b9 Bugfix. diff -r 51545c49083a -r 2461285a2f90 src/share/vm/oops/methodData.cpp --- a/src/share/vm/oops/methodData.cpp Fri May 17 17:35:10 2013 +0200 +++ b/src/share/vm/oops/methodData.cpp Fri May 17 17:43:01 2013 +0200 @@ -168,6 +168,18 @@ } } +#ifdef GRAAL +void VirtualCallData::clean_weak_klass_links(BoolObjectClosure* is_alive_cl) { + ReceiverTypeData::clean_weak_klass_links(is_alive_cl); + for (uint row = 0; row < method_row_limit(); row++) { + Method* p = method(row); + if (p != NULL && !p->method_holder()->is_loader_alive(is_alive_cl)) { + clear_method_row(row); + } + } +} +#endif // GRAAL + #ifndef PRODUCT void ReceiverTypeData::print_receiver_data_on(outputStream* st) { uint row; @@ -198,18 +210,6 @@ print_shared(st, "VirtualCallData"); print_receiver_data_on(st); } - -#ifdef GRAAL -void VirtualCallData::clean_weak_klass_links(BoolObjectClosure* is_alive_cl) { - ReceiverTypeData::clean_weak_klass_links(is_alive_cl); - for (uint row = 0; row < method_row_limit(); row++) { - Method* p = method(row); - if (p != NULL && !p->method_holder()->is_loader_alive(is_alive_cl)) { - clear_method_row(row); - } - } -} -#endif // GRAAL #endif // !PRODUCT // ==================================================================