Currently JITTester only generates common, instance classes. This PR suggests a 
value classes support for the tool.

Specifically, it:
- adds a ValueKlass and ValueKlassFactory to produce the necessary entities in 
the AST.
- makes sure that we don't generate mutable fields in the value classes
- blocks synchronized usage on value-class methods
- value classes get increased probability to be abstract - 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).

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

Commit messages:
 - 8382603: [lworld] [jittester] Add Value Classes support in generated tests

Changes: https://git.openjdk.org/valhalla/pull/2346/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2346&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8382603
  Stats: 881 lines in 15 files changed: 626 ins; 212 del; 43 mod
  Patch: https://git.openjdk.org/valhalla/pull/2346.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2346/head:pull/2346

PR: https://git.openjdk.org/valhalla/pull/2346

Reply via email to