Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233913

Remove implicit conversion from Method* to methodHandle

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      The implicit conversion from Method* to methodHandle requires calling Thread::current() which is fairly cheap these days, but there's a THREAD local almost always present. Also, removing conversions would fix the case where we have

      void foo(const methodHandle& m) {}

      methodHandle m(some method);
      foo(m());

      which converts from and to methodHandle unnecessarily but silently.

      Also ConstantPool* to constantPoolHandle.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: