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

Investigate whether we can do a "make your own v-table" construct in java.lang.invoke

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: P4 P4
    • 10
    • 9
    • core-libs
    • None

      When John and Vladimir were in Stockholm last week we discussed if there are any ways around a class being the smallest possible compile unit in the JVM to swap out code.

      John came up with the idea of having an API in java.lang.invoke where we can register an array of MethodHandles and constant pool entries to use as a "poor man's vtable" to enable swapping out callsite targets without having to reinstall freshly generated code as new classes.

      This would be fairly simple to test out in Nashorn if a POC implementation existed.

      I'm filing this so we don't forget it.

            vlivanov Vladimir Ivanov
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: