For questions about the invokedynamic bytecode instruction of the Java virtual machine.
Questions tagged [invokedynamic]
78 questions
0
votes
2 answers
InvokeDynamic: Is it possible to pass call site bytecode to the bootstrap method and then execute it
Let's say I have a custom Java compiler or bytecode agent.
Is it possible to pass call site bytecode to my bootstrapping handler in a way that won't require me to generate an anonymous class to "host" the bytecode inside a synthetic method?
I.e…

Daniel Worthington-Bodart
- 1,854
- 19
- 27
0
votes
2 answers
In what situations can we expect performance gains with Groovy2.0 + invoke dynamic?
I ported the Java code of the Havlak benchmark from Robert Hundt (see link) to Groovy. Now I run the benchmark with Groovy 2.1.1 with invoke dynamic and without, but the duration the computation takes is almost the same. What did I do to enable…

OlliP
- 1,545
- 11
- 22
-2
votes
2 answers
MethodHandle Manipulation
For my work with aspectJ and invokedynamic I need to weave in an advice into a method when a pointcut matches the called method.
First I have exchanged the bootstrapmethod of the invokedynamic-instruction in the script with my own one. Now in my…

Thorben
- 953
- 13
- 28