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

Remove implicit conversion from Method* to methodHandle

XMLWordPrintable

    • b23

      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.

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

              Created:
              Updated:
              Resolved: