< prev index next >

src/share/vm/code/dependencies.cpp

Print this page

        

*** 1505,1520 **** Klass* Dependencies::check_call_site_target_value(oop call_site, oop method_handle, CallSiteDepChange* changes) { assert(call_site ->is_a(SystemDictionary::CallSite_klass()), "sanity"); assert(method_handle->is_a(SystemDictionary::MethodHandle_klass()), "sanity"); if (changes == NULL) { // Validate all CallSites ! if (java_lang_invoke_CallSite::target(call_site) != method_handle) return call_site->klass(); // assertion failed } else { // Validate the given CallSite ! if (call_site == changes->call_site() && java_lang_invoke_CallSite::target(call_site) != changes->method_handle()) { ! assert(method_handle != changes->method_handle(), "must be"); return call_site->klass(); // assertion failed } } return NULL; // assertion still valid } --- 1505,1520 ---- Klass* Dependencies::check_call_site_target_value(oop call_site, oop method_handle, CallSiteDepChange* changes) { assert(call_site ->is_a(SystemDictionary::CallSite_klass()), "sanity"); assert(method_handle->is_a(SystemDictionary::MethodHandle_klass()), "sanity"); if (changes == NULL) { // Validate all CallSites ! if (! oopDesc::equals(java_lang_invoke_CallSite::target(call_site), method_handle)) return call_site->klass(); // assertion failed } else { // Validate the given CallSite ! if (oopDesc::equals(call_site, changes->call_site()) && ! oopDesc::equals(java_lang_invoke_CallSite::target(call_site), changes->method_handle())) { ! assert(! oopDesc::equals(method_handle, changes->method_handle()), "must be"); return call_site->klass(); // assertion failed } } return NULL; // assertion still valid }
< prev index next >