Value Types - Meet some issues during execution

Tobias Hartmann tobias.hartmann at
Fri Oct 21 12:58:25 UTC 2016

Hi Fabien,

the current value types prototype has still very limited JIT support (C2 only) and does not support all of the new vbytecodes and functionality yet. For an example of what already works, please have a look at these tests:
Especially calls on value types are not yet working.

If you are experimenting with value types, it's best to disable compilation for now (-Xint).

I'm actively working on this and will constantly update the tests if new functionality is added. I also plan to send a summary of the implementation at some point.

Best regards,

On 21.10.2016 14:48, GIACHERIO Fabien wrote:
> Hi everyone,
> I am currently working on value types and I am trying to execute an example.
> I can compile the class below but I meet some issues when I try to execute
> it even if I add these arguments :
> -noverify
> -XX:-TieredCompilation
> -XX:-BackgroundCompilation
> -XX:-UseOnStackReplacement
> -XX:CompileCommand=compileonly,Point::*
> -XX:+PrintCompilation
> Do you have any solution ? If so, would you tell me please.
> Here is my code :
> __ByValue final class Point{
>     final int x;
>     final int y;
>     private Point(int x, int y) {
>         this.x = x;
>         this.y = y;
>     }
>     public static void hello() {
>         Point origin = __Make Point(1,2);
>     }
>     public static void main(String[] args) {
>         hello();
>     }
> }
> Best Regards,

More information about the valhalla-dev mailing list