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

Inlining fails earlier for MemorySegment::reinterpret

XMLWordPrintable

      Inlining fails earlier for MemorySegment::reinterpret compared to other variants.

                                                    @ 5 java.lang.Class::getModule (5 bytes) accessor
                                                    @ 33 java.lang.System$2::ensureNativeAccess (11 bytes) inline (hot)
                                                      @ 7 java.lang.Module::ensureNativeAccess (299 bytes) inline (hot)
                                                        @ 1 java.lang.Module::moduleForNativeAccess (15 bytes) inline (hot)
      FAILURE HERE -> @ 1 java.lang.Module::isNamed (13 bytes) failed to inline: inlining too deep

      Details here https://gist.github.com/Spasi/513d57fc608d9b91bcd73751e71491d1

      We should try adding @ForceInline annotations to some internal methods.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: