[lworld] RFR: 8280164: [lworld] Generate Preload attribute to enumerate value classes encountered

Srikanth Adayapalam sadayapalam at openjdk.java.net
Wed Jan 19 11:58:46 UTC 2022


On Tue, 18 Jan 2022 18:45:18 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:

> Modelled after InnerClasses attribute generation, we may be generating more information than necessary/useful but this is initial cut

test/langtools/tools/javac/valhalla/value-objects/PreloadAttributeTest.java line 54:

> 52:                V6 [] v61 = null;  // stack map table.
> 53:             } else {
> 54:                V5 [] v52 = null;

A note: V6 has no mention in the source file anywhere (local variable table, stack map table ...) and so doesn't feature in Preload either. The test should be updated to reflect that - it gives the impression that V6 is expected in the Preloads.

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

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



More information about the valhalla-dev mailing list