On Tue, 21 Apr 2026 10:05:01 GMT, Evgeny Nikitin <[email protected]> wrote:
> Currently JITTester only generates common, instance classes. This PR suggests > a value classes support for the tool. > > Specifically, it: > - adds a ValueKlass as an AST node carrier for the new type > - moves most of KlassFactory internals into generic AbstractKlassFactory > - adds smaller concrete KlassFactory and ValueKlassFactory. > - makes sure that we don't generate mutable fields in the value classes > - blocks synchronized usage on value-class methods > - raises probability to be abstract for the value classes - to check deeper > hierarchies. > - adds a parameter governing the balance between instance and value classes. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 44950133 Author: Evgeny Nikitin <[email protected]> Committer: Paul Hübner <[email protected]> URL: https://git.openjdk.org/valhalla/commit/449501330a97234a26689093496f4e84e59e1636 Stats: 880 lines in 15 files changed: 625 ins; 212 del; 43 mod 8382603: [lworld] [jittester] Add Value Classes support in generated tests Reviewed-by: phubner ------------- PR: https://git.openjdk.org/valhalla/pull/2346
