当前位置: 首页>>代码示例>>C++>>正文


C++ check_is_loaded函数代码示例

本文整理汇总了C++中check_is_loaded函数的典型用法代码示例。如果您正苦于以下问题:C++ check_is_loaded函数的具体用法?C++ check_is_loaded怎么用?C++ check_is_loaded使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了check_is_loaded函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: check_is_loaded

// ------------------------------------------------------------------
// ciMethod::uses_balanced_monitors
//
// Does this method use monitors in a strict stack-disciplined manner?
bool ciMethod::has_balanced_monitors() {
  check_is_loaded();
  if (_balanced_monitors) return true;

  // Analyze the method to see if monitors are used properly.
  VM_ENTRY_MARK;
  methodHandle method(THREAD, get_Method());
  assert(method->has_monitor_bytecodes(), "should have checked this");

  // Check to see if a previous compilation computed the
  // monitor-matching analysis.
  if (method->guaranteed_monitor_matching()) {
    _balanced_monitors = true;
    return true;
  }

  {
    EXCEPTION_MARK;
    ResourceMark rm(THREAD);
    GeneratePairingInfo gpi(method);
    gpi.compute_map(CATCH);
    if (!gpi.monitor_safe()) {
      return false;
    }
    method->set_guaranteed_monitor_matching();
    _balanced_monitors = true;
  }
  return true;
}
开发者ID:arbeitspferde,项目名称:openjdk9-hotspot,代码行数:33,代码来源:ciMethod.cpp

示例2: check_is_loaded

// ------------------------------------------------------------------
// invokedynamic support
//
bool ciMethod::is_method_handle_invoke() const {
  check_is_loaded();
  bool flag = ((flags().as_int() & JVM_MH_INVOKE_BITS) == JVM_MH_INVOKE_BITS);
#ifdef ASSERT
  {
    VM_ENTRY_MARK;
    bool flag2 = get_methodOop()->is_method_handle_invoke();
    assert(flag == flag2, "consistent");
  }
#endif //ASSERT
  return flag;
}
开发者ID:tetratec,项目名称:Runescape-Launcher,代码行数:15,代码来源:ciMethod.cpp

示例3: check_is_loaded

// ------------------------------------------------------------------
// ciMethod::itable_index
//
// Get the position of this method's entry in the itable, if any.
int ciMethod::itable_index() {
  check_is_loaded();
  assert(holder()->is_linked(), "must be linked");
  VM_ENTRY_MARK;
  return klassItable::compute_itable_index(get_methodOop());
}
开发者ID:ismo1652,项目名称:jvmnotebook,代码行数:10,代码来源:ciMethod.cpp

示例4: flags

 // Basic method information.
 ciFlags flags() const                          { check_is_loaded(); return _flags; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:2,代码来源:ciMethod.hpp

示例5: max_stack

 int max_stack() const                          { check_is_loaded(); return _max_stack; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例6: exception_table_length

 int exception_table_length() const             { check_is_loaded(); return _handler_count; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例7: arg_size

 // Can only be used on loaded ciMethods
 int          arg_size() const                  {
   check_is_loaded();
   return _signature->size() + (_flags.is_static() ? 0 : 1);
 }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:5,代码来源:ciMethod.hpp

示例8: has_exception_handlers

 bool has_exception_handlers() const            { check_is_loaded(); return _handler_count > 0; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例9: intrinsic_id

 vmIntrinsics::ID intrinsic_id() const          { check_is_loaded(); return _intrinsic_id; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例10: max_locals

 int max_locals() const                         { check_is_loaded(); return _max_locals; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例11: nmethod_age

 int nmethod_age() const                        { check_is_loaded(); return _nmethod_age; }
开发者ID:mohlerm,项目名称:hotspot_cached_profiles,代码行数:1,代码来源:ciMethod.hpp

示例12: size_of_parameters

 int size_of_parameters() const                 { check_is_loaded(); return _size_of_parameters; }
开发者ID:mohlerm,项目名称:hotspot_cached_profiles,代码行数:1,代码来源:ciMethod.hpp

示例13: interpreter_invocation_count

 int interpreter_invocation_count() const       { check_is_loaded(); return _interpreter_invocation_count; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例14: code_size

 int code_size() const                          { check_is_loaded(); return _code_size; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp

示例15: interpreter_throwout_count

 int interpreter_throwout_count() const         { check_is_loaded(); return _interpreter_throwout_count; }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:ciMethod.hpp


注:本文中的check_is_loaded函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。