Skip to content

[WIP] feat: managed jvm21 toolchain, pt 2#6

Draft
Sam Gammon (sgammon) wants to merge 10 commits intomainfrom
feat/jdk21-truffle24-x
Draft

[WIP] feat: managed jvm21 toolchain, pt 2#6
Sam Gammon (sgammon) wants to merge 10 commits intomainfrom
feat/jdk21-truffle24-x

Conversation

@sgammon
Copy link
Copy Markdown
Member

@sgammon Sam Gammon (sgammon) commented Jan 22, 2025

Testing with GHA.

  • Punchlist
    • New hashes for GVM install step
    • Integration test using JVM 17
    • Multi-JDK testing
    • Kotlin ABI checks
    • Carefully update lockfiles
    • Drop GHA scaffolding
  • Known Issues
    • pkl-gradle: Broken tests
      • ModuleSupport: Natives not loaded; needs JNI init from resources
    • JDK 17: Need to fix exports for fat JAR consumers
      • Add JAR manifest attribute at Add-Exports

@sgammon Sam Gammon (sgammon) self-assigned this Jan 22, 2025
@sgammon Sam Gammon (sgammon) force-pushed the feat/jdk21-truffle24-x branch 2 times, most recently from 27bc91d to fa763c8 Compare January 28, 2025 23:55
- feat: support for jvm21+ toolchain
- feat: support for gradle toolchains
- feat: pass `-PnativeArch=native` to build with `-march=native`
- feat: `-Os` optimization for native builds
- test: multi-jdk testing support
- fix: remove mrjar classes at >jvm17 from fatjars
- fix: use jdk21 to run the tests (needed for `Unsafe.ensureInitialized`)
- fix: truffle svm dependency is required after graalvm `24.0.0`
- fix: warnings for gvm flag usage, renamed truffle svm macro
- fix: build with `--add-modules=jdk.unsupported` where needed
- fix: don't use `gu` tool for modern graalvm versions
- chore: buildinfo changes for JVM targets, toolchains
- chore: enforce testing at exactly jdk21
- chore: enforce build tooling at jdk21+
- chore: bump graalvm/truffle libs → `24.1.2`
- chore: toolchains for `buildSrc`

Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
- chore: update to jdk21 in circle jobs
- chore: re-gen circle jobs

Signed-off-by: Sam Gammon <sam@elide.dev>
- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907
Cherry-picked from apple#914

Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant