-
Task
-
Resolution: Duplicate
-
P4
-
9
-
None
-
generic
-
generic
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.
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.