RFR: 8345474: Translation for instanceof is not triggered when patterns are not used in the compilation unit [v2]

Aggelos Biboudis abimpoudis at openjdk.org
Wed Dec 4 11:01:54 UTC 2024


> Our tests for #21539 covered the case of using `instanceof` as both a type comparison operator and a pattern matching operator in a single compilation unit. That concealed the fact that the translation is getting triggered only when the compilation unit `hasPatterns`. This was evident/reproducible also by experimentation using jshell. This PR addresses this issue.

Aggelos Biboudis has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  8345474: Translation for instanceof is not triggered when patterns are not used in the compilation unit

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22541/files
  - new: https://git.openjdk.org/jdk/pull/22541/files/e46f9bc8..c5e4b62a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22541&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22541&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22541.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22541/head:pull/22541

PR: https://git.openjdk.org/jdk/pull/22541


More information about the compiler-dev mailing list