[lworld] RFR: JDK-8293321: [lworld] substitutability test shall support value class with cyclic membership [v3]

Mandy Chung mchung at openjdk.org
Tue Nov 1 17:29:00 UTC 2022


> L-type allows cycles. `acmp` shall support value classes with cyclic membership.  This PR adds the support in the Java implementation of `acmp` (i.e. `ValueObjectMethods::isSubstitutable`). 
> 
> This patch includes [John's first cut to make a Y combinator method handle](https://github.com/openjdk/jdk/pull/10155) to enable a method handle to call itself recursively.    PR 10155 is adequate for internal use for now.  A separate RFE will follow to define such an API.
> 
> A separate issue [JDK-8296056](https://bugs.openjdk.org/browse/JDK-8296056) tracks the C2 `acmp` support.

Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:

  ignore test to run with C1

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/802/files
  - new: https://git.openjdk.org/valhalla/pull/802/files/8b1e5508..67148fad

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=802&range=02
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=802&range=01-02

  Stats: 14 lines in 2 files changed: 7 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/valhalla/pull/802.diff
  Fetch: git fetch https://git.openjdk.org/valhalla pull/802/head:pull/802

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



More information about the valhalla-dev mailing list