Hi everyone,

http://jcp.org/aboutJava/communityprocess/edr/jsr292/

is quite interesting and I've spent some time reading through it  
(don't fully grasp all the details yet though). In very short, this  
offers an alternative for the invokeinterface byte code so that  
linking to the actual target method can happen dynamically at runtime.  
This would be done through a new invokedynamic bytecode that allows a  
static bootstrap method to execute the method and to optionally  
install a target method in the call site for future use.

I've been wondering if Terracotta could not benefit from this in the  
future.

One possibility I see is to try to push for the support of  
invokedynamic for invokespecial instructions, so that the actual  
instantiation of an object can be linked dynamically at runtime too.  
We could then install a global bootstrap method that is able to create  
or provide managed instances at runtime.

Another possibility is that this would allow us to easily activate and  
deactivate Terracotta-specific instructions at runtime (disconnect  
mode?).

Something else I'm thinking of is to execute particular methods based  
on the scope in which they execute and be able to maybe work around  
class loader problems.

This is all still very early stage in my mind and I'm constantly  
coming up with new ideas. It would be interesting how others here  
could see invokedynamic being useful for Terracotta. It would also be  
good to brainstorm around this now, so that we can eventually steer  
the expert group with suggestions if we need special things.

Take care,

Geert

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com

_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to