> This patch adds new tests of fields layouts and the substitutability method > using randomly generated methods. > In its current form, the value class generator is limited to the JEP 401 > model, meaning it doesn't support null-restricted fields nor non-atomic > values. > > The value class generator (ValueClassGenerator.java) is used by > ValueRandomLayoutTest.java which runs the FieldLayoutAnalyzer on all > generated classes to verify invariants of layouts. > The value class generator is also used by ValueComparisonTest.java which > tests the substitutability method. The generated value classes have a set of > pre-computed values than can be used for instance initializations and value > comparisons. > > Testing in progress tier1-4 > > Fred
Frederic Parain has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 14 additional commits since the last revision: - Fix String replacement and temporary directories creation - Merge remote-tracking branch 'upstream/lworld' into generated_tests - Fix generation of short values - Fix classpath for Windows machines - Remove hard coded version number - Refactor generation of primitives pre-generated values - Fix work directory, identation and other minor fixes - Fix end of file return and remove dead code - Test tuning - Fix layout output - ... and 4 more: https://git.openjdk.org/valhalla/compare/94dba869...b3bacceb ------------- Changes: - all: https://git.openjdk.org/valhalla/pull/2202/files - new: https://git.openjdk.org/valhalla/pull/2202/files/edf9d7a0..b3bacceb Webrevs: - full: https://webrevs.openjdk.org/?repo=valhalla&pr=2202&range=06 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=2202&range=05-06 Stats: 47890 lines in 1380 files changed: 24765 ins; 12318 del; 10807 mod Patch: https://git.openjdk.org/valhalla/pull/2202.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2202/head:pull/2202 PR: https://git.openjdk.org/valhalla/pull/2202
