Consolidate static and dynamic CDS method adapter trampoline allocation

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Duplicate
    • Priority: P3
    • 16
    • Affects Version/s: 15
    • Component/s: hotspot

      This is the second step of JDK-8234693 Consolidate CDS static and dynamic archive dumping code
      ----

      In dynamic CDS dumping, method entry trampolines are allocated in DynamicArchiveBuilder::make_trampolines()

      http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/memory/dynamicArchive.cpp#l803

      whereas in static CDS dumping, it's done in CDSAdapterHandlerEntry::init()

      http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/runtime/sharedRuntime.cpp#l3172

      We should convert the static dumping to the former, which avoids special handling during regular method linking.

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: