tableswitch does not use an array of offsets

Yann Le Tallec ylt at
Wed Mar 27 09:51:57 PDT 2013

I should have mentioned that my question is due to this other discussion:

On 27 March 2013 08:56, Yann Le Tallec <ylt at> wrote:

> The code below is compiled as a tableswitch bytecode instruction as one
> would expect because the case values are contiguous. However, the JIT
> (Hotspot using JDK/JRE 1.7u17 64 bit on x86/Windows in either -server or
> -client mode) compiles it into a succession of cmp/je/jg.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the hotspot-compiler-dev mailing list