Skip to content

[GR-75232] Remove use-graalvm from standalone pointsto tests#13443

Closed
graalvmbot wants to merge 1 commit intomasterfrom
d-kozak/GR-75232/standalone-remove-use-graalvm
Closed

[GR-75232] Remove use-graalvm from standalone pointsto tests#13443
graalvmbot wants to merge 1 commit intomasterfrom
d-kozak/GR-75232/standalone-remove-use-graalvm

Conversation

@graalvmbot
Copy link
Copy Markdown
Collaborator

Summary

Remove --use-graalvm from standalone-pointsto-unittest and make the Espresso-backed standalone analysis test setup explicit under the normal mx launcher.

Changes

  • Run standalone-pointsto-unittest espresso without switching the test VM to a GraalVM launch mode.
  • Pass the Java home of the built GraalJDK to standalone analysis through com.oracle.graal.pointsto.standalone.vmaccess.java.home.
  • Let PointsToAnalyzer prefer that explicit VMAccess Java home over the process java.home.
  • Add the Espresso VMAccess, Espresso language/resource, and Truffle NFI dependencies needed by the standalone unit-test configuration in a clean build.
  • Keep native access enabled for org.graalvm.truffle so Espresso NFI loading does not rely on restricted native access warnings.
  • Fail early in EspressoExternalVMAccessBuilder.build() when the temporary Polyglot engine cannot see the java language, before configuring java.* options or processing VM options.

Validation

  • Broken-deps reproduction: temporarily kept ESPRESSO_VMACCESS while removing the Espresso language/runtime deps; standalone-pointsto-unittest espresso now fails early with a descriptive IllegalStateException that the Polyglot engine does not expose the java language.
  • Clean-slate check in the same mx -p graal/substratevm --dy /espresso-compiler-stub context, including rebuilds of the standalone test closure, GraalJDK, Truffle NFI libffi, and Espresso deps.
  • mx -p graal/espresso-compiler-stub --strict-compliance eclipseformat --primary
  • mx -p graal/espresso-compiler-stub --strict-compliance checkstyle --primary
  • mx -p graal/espresso-compiler-stub --strict-compliance build -f --warning-as-error --jdt builtin --projects com.oracle.truffle.espresso.vmaccess
  • mx -p graal/espresso-compiler-stub --strict-compliance build -f --warning-as-error --force-javac --projects com.oracle.truffle.espresso.vmaccess
  • mx -p graal/substratevm --dy /espresso-compiler-stub --strict-compliance build -f --warning-as-error --jdt builtin --projects com.oracle.graal.pointsto.standalone
  • mx -p graal/substratevm --dy /espresso-compiler-stub --strict-compliance build -f --warning-as-error --force-javac --projects com.oracle.graal.pointsto.standalone
  • mx -p graal/substratevm --dy /espresso-compiler-stub --strict-compliance build -f --warning-as-error --force-javac --dependencies=ESPRESSO_VMACCESS
  • mx -p graal/substratevm --dy /espresso-compiler-stub standalone-pointsto-unittest espresso
  • mx -p graal/substratevm --dy /espresso-compiler-stub standalone-pointsto-unittest host

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 30, 2026
Run the Espresso-backed standalone points-to unit tests on the regular mx-launched VM and pass the Java home of the built GraalJDK explicitly to VMAccess. This keeps the test command aligned with normal mx build outputs instead of relying on --use-graalvm.

Add the Espresso VMAccess, language resources, and Truffle NFI dependencies needed by the standalone unit-test configuration so the Espresso path can be assembled from a clean build. Keep native access enabled for org.graalvm.truffle to avoid restricted native-access warnings around NFI loading.

Teach PointsToAnalyzer to prefer the explicit VMAccess Java home property, and have Espresso VMAccess fail early when the temporary Polyglot engine cannot see the Java language. That produces a clear setup error before java.* options or guest VM options are processed.
@graalvmbot graalvmbot force-pushed the d-kozak/GR-75232/standalone-remove-use-graalvm branch from 598c208 to ea6b844 Compare April 30, 2026 10:10
@graalvmbot graalvmbot closed this May 1, 2026
@graalvmbot graalvmbot deleted the d-kozak/GR-75232/standalone-remove-use-graalvm branch May 1, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants