RFR: javac support for Parametric VM, first stab [v3]

Rémi Forax github.com+828220+forax at openjdk.java.net
Fri Mar 12 22:31:15 UTC 2021


On Fri, 12 Mar 2021 22:23:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/PoolConstant.java line 234:
>> 
>>> 232:         final int kind;
>>> 233: 
>>> 234:         Parameter(int kind) {
>> 
>> Why do you create a Parameter without an id ?
>
> That is during class reading - where we don't care about the "id" anymore. The "id" is just a "fiction" when writing, to help us generating multiple CP holes (possibly with the same kind).

Ok, i did not think about that part of the process, and you do not do any roundtrip, reader - >  javac -> gen,
thanks

-------------

PR: https://git.openjdk.java.net/valhalla/pull/364



More information about the valhalla-dev mailing list