RFR: 8304888: Add dedicated VMProps for linker and fallback linker [v5]

Jorn Vernee jvernee at openjdk.org
Tue May 2 13:13:30 UTC 2023


> This patch adds a dedicated jtreg property to check which CABI is being used by the JDK, which can be used both to check whether the foreign linker is supported, and whether the fallback linker is being used. (and, possibly it can also be use to check for a particular ABI in case we want to add ABI specific tests).
> 
> Checking whether the foreign linker is supported currently requires using an unwieldy expression that checks if we are running on a platform that has a foreign linker port. Checking for the fallback linker currently uses `vm.flavor != "zero"` which is not always correct, since the fallback linker can also be used on other platforms which are not `zero`.
> 
> To initialize the property, VMProps directly reads `jdk.internal.foreig.CABI::current()`. Since this class is in an internal package, `--add-exports` flags are added as javac flags and VM flags for the extra prop definitions class.

Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:

  jdk.CABI -> jdk.foreign.linker

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13429/files
  - new: https://git.openjdk.org/jdk/pull/13429/files/272478b6..a3947c55

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13429&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13429&range=03-04

  Stats: 81 lines in 48 files changed: 2 ins; 2 del; 77 mod
  Patch: https://git.openjdk.org/jdk/pull/13429.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13429/head:pull/13429

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


More information about the core-libs-dev mailing list