RFR (M): 8026328: Setting a breakpoint on invokedynamic crashes the JVM
john.r.rose at oracle.com
Tue Oct 22 16:11:44 PDT 2013
Reviewed. Nice fix, and very nice cleanups.
Thanks for nuking those stray "0xFF" constants along the way.
On Oct 22, 2013, at 3:31 PM, Christian Thalinger <christian.thalinger at oracle.com> wrote:
> 8026328: Setting a breakpoint on invokedynamic crashes the JVM
> Well-known invoke instructions have a 2-byte index but invokedynamic has a 4-byte index. In return entries we check the bytecode instruction to decide which size the index has.
> The problem is that if there is a breakpoint there is no way to know what index size the instruction has because the original instruction byte was replaced with the breakpoint byte.
> There are a couple of ways to fix this but the proper way (in my opinion) is to have separate return entries for the different classes of invoke instructions. This on one hand generates more return entries but on the other hand makes them smaller and simpler.
More information about the hotspot-compiler-dev