Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/prims/methodHandleWalk.hpp
          +++ new/src/share/vm/prims/methodHandleWalk.hpp
↓ open down ↓ 396 lines elided ↑ open up ↑
 397  397    constantPoolHandle get_constant_pool(TRAPS) const;
 398  398  
 399  399    // Get a real methodOop.
 400  400    methodHandle get_method_oop(TRAPS) const;
 401  401  
 402  402  public:
 403  403    MethodHandleCompiler(Handle root, methodHandle call_method, bool for_invokedynamic, TRAPS);
 404  404  
 405  405    // Compile the given MH chain into bytecode.
 406  406    methodHandle compile(TRAPS);
      407 +
      408 +  // Tests if the given class is a MH adapter holder.
      409 +  static bool klass_is_method_handle_adapter_holder(klassOop klass) {
      410 +    return (klass == SystemDictionary::MethodHandle_klass() ||
      411 +            klass == SystemDictionary::InvokeDynamic_klass());
      412 +  }
 407  413  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX