< prev index next >

src/hotspot/share/ci/ciMethod.cpp

Print this page




 916     if (counter_life > method_life)
 917       counter_life = method_life;
 918     if (0 < counter_life && counter_life <= method_life) {
 919       count = (int)((double)count * prof_factor * method_life / counter_life + 0.5);
 920       count = (count > 0) ? count : 1;
 921     }
 922   }
 923   return count;
 924 }
 925 
 926 
 927 // ------------------------------------------------------------------
 928 // ciMethod::is_special_get_caller_class_method
 929 //
 930 bool ciMethod::is_ignored_by_security_stack_walk() const {
 931   check_is_loaded();
 932   VM_ENTRY_MARK;
 933   return get_Method()->is_ignored_by_security_stack_walk();
 934 }
 935 







 936 
 937 // ------------------------------------------------------------------
 938 // invokedynamic support
 939 
 940 // ------------------------------------------------------------------
 941 // ciMethod::is_method_handle_intrinsic
 942 //
 943 // Return true if the method is an instance of the JVM-generated
 944 // signature-polymorphic MethodHandle methods, _invokeBasic, _linkToVirtual, etc.
 945 bool ciMethod::is_method_handle_intrinsic() const {
 946   vmIntrinsics::ID iid = _intrinsic_id;  // do not check if loaded
 947   return (MethodHandles::is_signature_polymorphic(iid) &&
 948           MethodHandles::is_signature_polymorphic_intrinsic(iid));
 949 }
 950 
 951 // ------------------------------------------------------------------
 952 // ciMethod::is_compiled_lambda_form
 953 //
 954 // Return true if the method is a generated MethodHandle adapter.
 955 // These are built by Java code.




 916     if (counter_life > method_life)
 917       counter_life = method_life;
 918     if (0 < counter_life && counter_life <= method_life) {
 919       count = (int)((double)count * prof_factor * method_life / counter_life + 0.5);
 920       count = (count > 0) ? count : 1;
 921     }
 922   }
 923   return count;
 924 }
 925 
 926 
 927 // ------------------------------------------------------------------
 928 // ciMethod::is_special_get_caller_class_method
 929 //
 930 bool ciMethod::is_ignored_by_security_stack_walk() const {
 931   check_is_loaded();
 932   VM_ENTRY_MARK;
 933   return get_Method()->is_ignored_by_security_stack_walk();
 934 }
 935 
 936 // ------------------------------------------------------------------
 937 // ciMethod::needs_clinit_barrier
 938 //
 939 bool ciMethod::needs_clinit_barrier() const {
 940   check_is_loaded();
 941   return is_static() && !holder()->is_initialized();
 942 }
 943 
 944 // ------------------------------------------------------------------
 945 // invokedynamic support
 946 
 947 // ------------------------------------------------------------------
 948 // ciMethod::is_method_handle_intrinsic
 949 //
 950 // Return true if the method is an instance of the JVM-generated
 951 // signature-polymorphic MethodHandle methods, _invokeBasic, _linkToVirtual, etc.
 952 bool ciMethod::is_method_handle_intrinsic() const {
 953   vmIntrinsics::ID iid = _intrinsic_id;  // do not check if loaded
 954   return (MethodHandles::is_signature_polymorphic(iid) &&
 955           MethodHandles::is_signature_polymorphic_intrinsic(iid));
 956 }
 957 
 958 // ------------------------------------------------------------------
 959 // ciMethod::is_compiled_lambda_form
 960 //
 961 // Return true if the method is a generated MethodHandle adapter.
 962 // These are built by Java code.


< prev index next >