< prev index next >

src/share/vm/oops/method.cpp

Print this page

        

*** 75,85 **** int size = Method::size(access_flags.is_native()); return new (loader_data, size, false, MetaspaceObj::MethodType, THREAD) Method(cm, access_flags); } Method::Method(ConstMethod* xconst, AccessFlags access_flags) { ! No_Safepoint_Verifier no_safepoint; set_constMethod(xconst); set_access_flags(access_flags); #ifdef CC_INTERP set_result_index(T_VOID); #endif --- 75,85 ---- int size = Method::size(access_flags.is_native()); return new (loader_data, size, false, MetaspaceObj::MethodType, THREAD) Method(cm, access_flags); } Method::Method(ConstMethod* xconst, AccessFlags access_flags) { ! NoSafepointVerifier no_safepoint; set_constMethod(xconst); set_access_flags(access_flags); #ifdef CC_INTERP set_result_index(T_VOID); #endif
*** 996,1006 **** // It returns the compiled code entry point, after asserting not null. // This function is called after potential safepoints so that nmethod // or adapter that it points to is still live and valid. // This function must not hit a safepoint! address Method::verified_code_entry() { ! debug_only(No_Safepoint_Verifier nsv;) assert(_from_compiled_entry != NULL, "must be set"); return _from_compiled_entry; } // Check that if an nmethod ref exists, it has a backlink to this or no backlink at all --- 996,1006 ---- // It returns the compiled code entry point, after asserting not null. // This function is called after potential safepoints so that nmethod // or adapter that it points to is still live and valid. // This function must not hit a safepoint! address Method::verified_code_entry() { ! debug_only(NoSafepointVerifier nsv;) assert(_from_compiled_entry != NULL, "must be set"); return _from_compiled_entry; } // Check that if an nmethod ref exists, it has a backlink to this or no backlink at all
*** 1546,1556 **** // default_methods also uses this without the ordering for fast find_method void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) { int length = methods->length(); if (length > 1) { { ! No_Safepoint_Verifier nsv; QuickSort::sort<Method*>(methods->data(), length, method_comparator, idempotent); } // Reset method ordering if (set_idnums) { for (int i = 0; i < length; i++) { --- 1546,1556 ---- // default_methods also uses this without the ordering for fast find_method void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) { int length = methods->length(); if (length > 1) { { ! NoSafepointVerifier nsv; QuickSort::sort<Method*>(methods->data(), length, method_comparator, idempotent); } // Reset method ordering if (set_idnums) { for (int i = 0; i < length; i++) {
< prev index next >